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.
Things that look wrong or different in your build log.
-I"C:\Program Files (x86)\CodeBlocks\MinGW\include\common"
-LC:\Users\snolan\Downloads\lib
Tim S.
Working build of wxFrame based, DLL, Monolithic, Unicode
OS: Windows 7 32 bit.
wxWidgets: 3.0.2
CB: 13.12
MinGW GCC: gcc version 4.8.1 (tdm-2)
-------------- Clean: ReleaseWin32 in testwx302 (compiler: CodeBlocks_13_12_MinGW)---------------
Cleaned "testwx302 - ReleaseWin32"
-------------- 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
Output file is bin\ReleaseWin32\testwx302.exe with size 564.00 KB
Process terminated with status 0 (0 minute(s), 13 second(s))
0 error(s), 0 warning(s) (0 minute(s), 13 second(s))
build.cfg file contents
WXVER_MAJOR=3
WXVER_MINOR=0
WXVER_RELEASE=2
BUILD=release
MONOLITHIC=1
SHARED=1
UNICODE=1
TOOLKIT=MSW
TOOLKIT_VERSION=
WXUNIV=0
CFG=
VENDOR=cb
OFFICIAL_BUILD=0
DEBUG_FLAG=1
DEBUG_INFO=default
RUNTIME_LIBS=dynamic
MSLU=0
USE_EXCEPTIONS=1
USE_RTTI=1
USE_THREADS=1
USE_AUI=1
USE_GUI=1
USE_HTML=1
USE_MEDIA=1
USE_OPENGL=1
USE_QA=0
USE_PROPGRID=1
USE_RIBBON=1
USE_RICHTEXT=1
USE_STC=1
USE_WEBVIEW=1
USE_XRC=1
COMPILER=gcc
COMPILER_VERSION=
CC=gcc
CXX=g++
CFLAGS=
CPPFLAGS=
CXXFLAGS=-std=gnu++11 -fno-keep-inline-dllexport
LDFLAGS=
Tim S.