Page 1 of 1

Debug Macros

Posted: Sat Jun 30, 2012 10:01 am
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. :)

Re: Debug Macros

Posted: Sat Jun 30, 2012 3:30 pm
by eranif
right click on the project settings select 'compiler' and under the 'preprocessor' simply add '_DEBUG'

Eran