Debug Macros

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

Debug Macros

Post by LysolPionex » Sat Jun 30, 2012 10:01 am

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.
#ifdef _DEBUG
mResourcesCfg = "resources_d.cfg";
mPluginsCfg = "plugins_d.cfg";
mResourcesCfg = "resources.cfg";
mPluginsCfg = "plugins.cfg";

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
CodeLite Plugin
Posts: 6091
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++

Re: Debug Macros

Post by eranif » Sat Jun 30, 2012 3:30 pm

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

Make sure you have read the HOW TO POST thread

Post Reply