AnsweredAssumed Answered

How does the compiler detect the target?

Question asked by Carl Norman on Jun 8, 2011
Latest reply on Aug 11, 2011 by Carl Norman

Hi,

 

Im sure this is probably simple, I just have not found the answer.

 

I have several targets in one project (CW7.2), when I select a target, I need to change what code compiles without manually defining a name and including that in everything. Something like this:

 

 

#ifdef Target1

.... some code ....

#endif

...some more code ...

#ifdefine Target2

... some more code ...

#endif

 

Is this possible?I have read the help files and came up with nothing...

 

Thanks,

Carl

Outcomes