User forums > Help
Problem with a global define for a particular build target.
(1/1)
indigo0086:
Basically in a simple library I made I am going to have it output to the debug console if "DEBUG" has been defined. ex:
--- Code: ---if(DEBUG)
cout << "debug message << endl;
--- End code ---
I went to the compiler settings tab for the debug build and in the #defines, sub-menu I entered "DEBUG" (without the quotes). The code executes fine if I'm on a debug build, but when I go to the release build it gives me the "DEBUG not defined" error. How am I able to bring the DEBUG value in the scope of a release build but have it execute as false?
TDragon:
"DEBUG=0"
indigo0086:
doi :idea:
Thanks.
Navigation
[0] Message Index
Go to full version