Now I am up to something, the story:

in the .h file defined in the Prefix file field, I define a line:

#define XYZ 1

when I run preprocess on a .c file which contains a code segment:

if (XYZ > 0) {

// ...

}

the preprocessed result is:

if (1 > 0) {

}

So far so good. The *problem* is: when I compile my project, there is
an error:

Error : undefined identifier 'XYZ'

Why the compiler interprets the code differently from the preprocessor?

Thanks
horace

p.s. I have to state once again, this only applies to my project. I cannot
reproduce the problem by generating a new project in CW.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to