I thought that the correct way to make a define with a value was to write: MY_HEADDER=my_file.h, in the Define: textbox in "Options for Target", but its not working. then I tried to use: -DMY_HEADDER="my_file.h" in the "Misc Controls" textbox, but its not working also.
is it posible?
I would agree with Hans-Bernhard.
A better approach might be:
#if defined OPTION_A #include "header_a.h" #elif defined OPTION_B #include "header_b.h" #else #error Must define an Option! #endif
Note the final #error clause to prevent "undefined" operation if no option (or no recognised option) is specified...