We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I have hit a wall. In the following fragment:
int a; void main(void) { a = 1; #if ((defined(TEST_1) && (TEST_1 == 27)) || (defined(TEST_2) && (TEST_2 == 27)) ) a = 2; #endif }
the conditional compilation crashes with diagnostic: > > *** ERROR C308 IN LINE 8 OF PreProc00.c: invalid integer const expression >
This comes from V8.02 of C51.
It doesn't matter whether TEST_1 & TEST_2 are #defined in the source file, defined in the compiler's command line, or not defined at all. I can't find anything wrong with my parentheses.
What am I missing here?
============================================================ Gary Lynch | To send mail, no$pam in domain name lynchg@no$pam.com | must be changed to stacoenergy. ============================================================
"... the first thing that's missing is the backslash '\' ..."
'\' is present as posted when viewed here using Firefox and IE6 browsers.