...
I used "nmake -f makefile.vc BUILD=release SHARED=0 MONOLITHIC=1 RUNTIME_LIBS=static" as the wxwidget command-line to compile.
Details of how (the command-line) they compiled WxWidgets into the static library version and details of the setup for code::blocks.
...
I try now on my Win2k, wxWidgets 2.6.2, sorry, WinGW only, C::B CVS [08.11.2005].
My steps see below:
1. clean old compile (was dll for C::B):
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean
2. build static wxWidgets:
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=0 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=my
SHARED=0 - main difference
3. copy $(WX_DIR)\lib\gcc_lib\* to $(WX_LIB)\lib\gcc_libNonUnicode\*
List of files:
C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\libwxexpat.a
C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\libwxjpeg.a
C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\libwxmsw26.a
C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\libwxpng.a
C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\libwxregex.a
C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\libwxtiff.a
C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\libwxzlib.a
C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\msw
C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\msw\build.cfg
C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\msw\wx
C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\msw\wx\setup.h
rem For your VC compiler "gcc_lib" change on "vc_lib"
4. start C::B and create new wxWidgets project "using static wxWidgets library"
and "With header files"
5. change WX_DIR in CustomVariables on C:\Devel\wxWidgets-2.6.2
6. change WX_CFG in CustomVariables on NonUnicode
rem Use it only if your execute p.3
7. change wxmsw on wxmws26 in library list
8. ReBuild
9. Ctrl-F10 - Ok
It's correct on your system?
If not, let see build parameters for your application.
Good luck!