Did you build wxWidgets with the
same exact compiler you are using to build the CB project?
I will download the wxWidgets 3.0.2 version when I have time; hopefully tonight to verify it builds.
The MinGW GCC version you are using is 4.8.1; and, I am guessing it came with CB, is this correct?
What version of CB are you using; so I can duplicate that also?
I have started building wx 3.0.2
Using
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 USE_OPENGL=1 VENDOR=cb CXXFLAGS="-std=gnu++11 -fno-keep-inline-dllexport" >log.txt 2>&1
The VENDOR=cb, USE_XRC=1, and USE_OPENGL=1 should NOT make a real difference in the build.
The main difference will likely be in the values of SHARED, MONOLITHIC, BUILD, UNICODE, and CXXFLAGS.
I have a old 32 bit Windows 7 Computer it tends to take 45 minutes just to link the wxWidgets DLL.
Edit3: IIRC, The "-fno-keep-inline-dllexport" stops the link from failing with out of memory error.
Edit4: My build log with the error that happens since my wx is still building.
-------------- Build: ReleaseWin32 in testwx302 (compiler: CodeBlocks_13_12_MinGW)---------------
windres.exe -IC:\wxMSW-3.0\wxWidgets-3.0.2\include -IC:\wxMSW-3.0\wxWidgets-3.0.2\lib\gcc_dll\mswu -J rc -O coff -i C:\Users\stahta01\TESTWX~1\resource.rc -o obj\ReleaseWin32\resource.res
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -Wall -O2 -Wmissing-include-dirs -Wno-unused-local-typedefs -IC:\wxMSW-3.0\wxWidgets-3.0.2\include -IC:\wxMSW-3.0\wxWidgets-3.0.2\lib\gcc_dll\mswu -c C:\Users\stahta01\testwx302\testwx302App.cpp -o obj\ReleaseWin32\testwx302App.o
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -Wall -O2 -Wmissing-include-dirs -Wno-unused-local-typedefs -IC:\wxMSW-3.0\wxWidgets-3.0.2\include -IC:\wxMSW-3.0\wxWidgets-3.0.2\lib\gcc_dll\mswu -c C:\Users\stahta01\testwx302\testwx302Main.cpp -o obj\ReleaseWin32\testwx302Main.o
mingw32-g++.exe -LC:\wxMSW-3.0\wxWidgets-3.0.2\lib\gcc_dll -o bin\ReleaseWin32\testwx302.exe obj\ReleaseWin32\testwx302App.o obj\ReleaseWin32\testwx302Main.o obj\ReleaseWin32\resource.res -s -mthreads -lwxmsw30u -mwindows
c:/program files/codeblocks/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw30u
Edit: These are global compiler settings I added in the past to do
-Wmissing-include-dirs Gives extra warnings
-Wno-unused-local-typedefs Reduces some useless warnings
Edit last: It built and ran for me with the default CB code for wxFrame build.
Tim S.