Hi forum,
I am using wxWidgets with changed setup.h under ...\lib\gcc_dll\mswu\wx
Changes are:
#ifdef NDEBUG
#define wxDEBUG_LEVEL 0
#else
#define wxDEBUG_LEVEL 2
#endif
# define wxUSE_GRAPHICS_CONTEXT 1
and I have problem with compiling because the order of include directories are not corrected in the CB projects
Errors:
D:/Dev/wxWidgets-3.0.3/include/wx/event.h:399: undefined reference to `wxOnAssert(char const*, int, char const*, char const*, char const*)'
D:/Dev/wxWidgets-3.0.3/include/wx/event.h:399: undefined reference to `wxTrap()'
The include directories are defined as:
$(#WX30_64.include)
$(#WX30_64.lib)\gcc_dll$(WX_CFG)\msw$(WX_SUFFIX)
but it must be opposite, otherwise ...\wxWidgets-3.0.3\lib\gcc_dll\mswu\wx\setup.h is coming after ...\include\wx\msw\setup.h
In my opinion, the usage of the $(WX_CFG) is wrong. If I compare the logic as is done for the wx-config (windows version, WXCFG environment variable), the much flexible solution is to define
WX_CFG=gcc_dll or completely without WX_CFG and define library folder inside $(#WX30_64.lib)
For my project I have
$(#WX30_64.lib)\mswu
$(#WX30_64.include)
This allows multiple sets of library at the same time. I have something as:
...\lib\gcc481-x64_dll\mswu(d)
...\lib\gcc492-x64_dll\mswu(d)
...\lib\gcc510-x64_dll\mswu(d)
...\lib\vc_x64_dll\mswu(d)
Regards,
Uskok