User forums > Using Code::Blocks
DEBUG and RELEASE condition compile
(1/1)
zyd:
In VC, I can do like this:
#ifdef _DEBUG
......
#else
......
#endif
I only select debug or release and it do what I want.
In CB, How can I do it? :( :(
MortenMacFly:
--- Quote from: zyd on April 25, 2007, 09:48:57 am ---In CB, How can I do it? :( :(
--- End quote ---
The same, hence you may need to provide a compiler define "_DEBUG" accordingly (project build options -> target "debug" -> Compiler settings -> #defines).
If you setup 2 targets (release/debug) within your project you can select the target (just as in VC) and do what you want...
With regards, Morten.
zyd:
3ks.
Navigation
[0] Message Index
Go to full version