> I finally found the problem. MSVC++ was defining _DEBUG. In wx/debug.h, > if _DEBUG is defined it automatically defines __WXDEBUG__ MSVC++ implicitly defines _DEBUG, if you build with Runtime library: Multi-threaded Debug DLL (/MDd) or Multi-threaded Debug (/MTd). Nusi