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.
Debug Macros
-
- CodeLite Curious
- Posts: 1
- Joined: Sat Jun 30, 2012 9:53 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Debug Macros
right click on the project settings select 'compiler' and under the 'preprocessor' simply add '_DEBUG'
Eran
Eran
Make sure you have read the HOW TO POST thread