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

What's wrong with C51 conditional compiled?

#define RR0  1
#define RR1  0

void main()
{
...
#if RR0
precedure0();
#elif RR1
precedure1();
#endif
...
}
when compiled ,main() 'LCALL' precedure0(),just right.but when definition changed ,as following:
#define RR0 0
#define RR1 1

the program can never be compiled and link.can you tell me what the matter is ?

Best regards,
Nantiangumo

0