??? 06/08/10 06:37 Modified: 06/08/10 06:38 Read: times |
#176509 - Preprocessor -vs- Compiler Responding to: ???'s previous message |
Murray R. Van Luyn said:
it appears that previous declarations of the CKCON SFR are not recognised as a 'definition' You are confusing Preprocessor definitions with Compiler definitions - #ifdef, etc, can only be used with Preprocessor definitions. With Keil, SFR definititions are Compiler definitions - just like any other variable - that's why they don't work with #if... As Michael says, you need to use Preprocessor flags if you want to do this... |