Hello,
I want to define preprocessor symbols for the debug target and other ones for the release target. Many topics speak how to define symbols into Project->Build options...->Debug/Target -> "defines" tabs... But I have no "#defines" tab (I use Code::Blocks 13:12 under Linux). There is only "Custom variables" and if put the definition of my symbols there, compiling ignores them. The only "#defines" tab is in Settings->Compiler...->Global compiler settings->Compiler settings->#defines. But defining my symbols there is not specific to a target mode.
I thought it was possible to define preprocessor symbols for each target mode. Perhaps I'm wrong. Maybe there is something I don't understand.
For instance, I'd like to define
#define CODEFLAG=1 // Debug target
#define CODEFLAG=2 // Release target
I can modify them by hand but if I forget...
Can you help me to solve my problem or just to suggest an idea ? Thanks in advance.