Using __WXDEBUG__
Posted: Mon Nov 11, 2013 6:04 pm
Hi, not sure where this problem is
Windows 8 64-bit
Codelite 5.3
wxWidgets 2.9.5
MinGW-4.7.1
1. Create a new codelite project (Executable (WxWidgets + wxFBFrame))
2. In "main.cpp", add the following code after
3. The program fails to compile in both the Debug and Release configurations. I was expecting it to not compile in Release, but it should compile in Debug config?
4. I'm not sure if it's relevant ... wxDEBUG_LEVEL is set to 1
Please can someone explain this?
Thanks, Colin
Windows 8 64-bit
Codelite 5.3
wxWidgets 2.9.5
MinGW-4.7.1
1. Create a new codelite project (Executable (WxWidgets + wxFBFrame))
2. In "main.cpp", add the following code after
Code: Select all
#include "main.h"
Code: Select all
#ifdef __WXDEBUG__
#error This program must be compiled in debug mode.
#endif
4. I'm not sure if it's relevant ... wxDEBUG_LEVEL is set to 1
Please can someone explain this?
Thanks, Colin