I downloaded wxWidgets 3.1.2, and after a few issues (resolved in the wxWidgets community forum) got the libraries built for Windows 32 bit. My first port-of-call is always the CB simple Frame-based demo using the CB wxWidgets wizard. This builds and runs without issue in wxWidgets 3.0.4. However, with 3.1.2 I get a number of linker errors:
-------------- Build: Debug in test (compiler: GNU GCC Compiler)---------------
i686-w64-mingw32-g++.exe -LC:\wxWidgets-3.1.2\lib\gcc_lib -o bin\Debug\test.exe obj\Debug\testApp.o obj\Debug\testMain.o obj\Debug\resource.res -mthreads -lwxmsw31ud_adv -lwxmsw31ud_core -lwxbase31ud -lwxpngd -lwxzlibd -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32 -lshlwapi -lversion -mwindows
C:\wxWidgets-3.1.2\lib\gcc_lib/libwxmsw31ud_core.a(corelib_window.o): In function `ZN8wxWindow16MSWHandleMessageEPljjl':
C:\wxWidgets-3.1.2\build\msw/../../src/msw/window.cpp:3537: undefined reference to `LresultFromObject@12'
C:\wxWidgets-3.1.2\build\msw/../../src/msw/window.cpp:3733: undefined reference to `_imp__GetThemeBackgroundContentRect@24'
C:\wxWidgets-3.1.2\build\msw/../../src/msw/window.cpp:3773: undefined reference to http://forums.codeblocks.org/Themes/default/images/bbc/code.gif`_imp__GetThemeBackgroundContentRect@24'
C:\wxWidgets-3.1.2\build\msw/../../src/msw/window.cpp:3781: undefined reference to `_imp__IsThemeBackgroundPartiallyTransparent@12'
C:\wxWidgets-3.1.2\build\msw/../../src/msw/window.cpp:3783: undefined reference to `_imp__DrawThemeParentBackground@12'
C:\wxWidgets-3.1.2\build\msw/../../src/msw/window.cpp:3795: undefined reference to `_imp__DrawThemeBackground@24'
etc
etc
As you can see, I am using a separate mingw toolset. However the same errors occur if I just build wxWidgets, and the CB sample, using the default mingw that I installed with the CB download. I have tried allsorts .... and am sure there is a flag or setting in CB that needs to be different.
I have been careful to setup the Compiler toolchain executable definitions and the Global wx variable to point at wxWidgets 3.1.2
TIA