Symbol definition on GUI [message #749083] |
Mon, 24 October 2011 22:59  |
Eclipse User |
|
|
|
I tried to find anything about this on the forums, but I couldn't, so I decide to open a topic.
I'm facing some trouble using the symbol definition.
When I include a symbol definition to my project, it works fine to the compilation process (e.g. -DDEBUG).
The problem is that the GUI doesn't seem to detect the global definitions.
e.g.:
If I create 2 different configurations (Debug Linux and Debug MacOS) and include, for exemple, a symbol named MACOS on Mac config, and a symbol named LINUX on Linux config, and use it like this on the code (with the configuration Debug MacOS active):
#ifdef LINUX
...
#elif defined MACOS
..
#endif
The compiler is going to understand it right and compile the way I want, but the GUI is actually thinking that the first define is defined, and the MACOS code is shown as gray (ignored code).
I know that this is basically an aesthetic problem, but with this little problem the GUI thinks that the code has some errors (those red X on the file).
Do you know if it is possible to solve this problem?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02792 seconds