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

HELP!! compile error C141

there are compile errors in the following
two function declaration.

void CAN_SETTXBID(unsigned char
node,unsigned char type);

int CAN_SETFILTER(unsigned char node);

they both have the following compile error:

error C141: syntax error near '0'

but there are no '0' in these two function declaration,so i can't figure out where
the '0' come from,and how should i correct
these codes?

Parents
  • "i don't have .i file in my project"

    Go to "Options for target" -> "Listing" and you can turn on the preprocessor listing file, map file output etc.

    "my keil is runing on simplified chinese
    version windowsXP,does that could be a cause?"

    I doubt it, but anything's possible with windows.

    It sounds much more as though you have a syntax error somewhere else in your program (maybe a missing semicolon or curly brace) which is causing the subsequent code to be taken out of context. Why don't you reverse the changes you made before this error occurred then reintroduce them one by one until the error reappears? This should let you discover what is causing it.

    Stefan

Reply
  • "i don't have .i file in my project"

    Go to "Options for target" -> "Listing" and you can turn on the preprocessor listing file, map file output etc.

    "my keil is runing on simplified chinese
    version windowsXP,does that could be a cause?"

    I doubt it, but anything's possible with windows.

    It sounds much more as though you have a syntax error somewhere else in your program (maybe a missing semicolon or curly brace) which is causing the subsequent code to be taken out of context. Why don't you reverse the changes you made before this error occurred then reintroduce them one by one until the error reappears? This should let you discover what is causing it.

    Stefan

Children