This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

porting from VC6 to C51

Hi guys, have you ever tried to do that? Can give me some experience? I got some stupid error msgs which I can not find out why?

Parents
  • "I tried to look at the source code at the error line but see nothing wrong."

    The error's in a header file - so it's most likely to be a missing or incorrect definition (eg, typedef or #define) some where before where the first error is reported.

    Are you sure that you have all the command-line defines correct?

    Try Andy's Handy Hint for Debugging Preprocessor Problems
    - Examine the preprocessor output:

    http://www.8052.com/forum/read.phtml?id=29152

    Note that the preprocessor listing is a valid 'C' source file. Try compiling it - then you will get error messages that relate directly to the source as the compiler sees it - without any preprocessor obfuscation...

Reply
  • "I tried to look at the source code at the error line but see nothing wrong."

    The error's in a header file - so it's most likely to be a missing or incorrect definition (eg, typedef or #define) some where before where the first error is reported.

    Are you sure that you have all the command-line defines correct?

    Try Andy's Handy Hint for Debugging Preprocessor Problems
    - Examine the preprocessor output:

    http://www.8052.com/forum/read.phtml?id=29152

    Note that the preprocessor listing is a valid 'C' source file. Try compiling it - then you will get error messages that relate directly to the source as the compiler sees it - without any preprocessor obfuscation...

Children