Debug Macros

General questions regarding the usage of CodeLite
LysolPionex
CodeLite Curious
Posts: 1
Joined: Sat Jun 30, 2012 9:53 am
Genuine User: Yes
IDE Question: C++
Contact:

Debug Macros

Post by LysolPionex »

I'm running an Ogre project, and it seems like when I compile, debug macros, which work automatically in VS and Code::Blocks, aren't automatically defined in CodeLite.
Example:
#ifdef _DEBUG
mResourcesCfg = "resources_d.cfg";
mPluginsCfg = "plugins_d.cfg";
#else
mResourcesCfg = "resources.cfg";
mPluginsCfg = "plugins.cfg";
#endif

In VS and Code::Blocks, _DEBUG is defined if I'm in the debug build, and not if I'm in the release build. I'm guessing I just need to specify these somewhere in the project settings, but I can't seem to find it. Any help is appreciated. :)
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Debug Macros

Post by eranif »

right click on the project settings select 'compiler' and under the 'preprocessor' simply add '_DEBUG'

Eran
Make sure you have read the HOW TO POST thread
Post Reply