there is a bug in the project file CodeBlocks-NewBuild.cbp
if so, do the following:
go to Project->Build options->"Directories"->"Linker"
edit the line
$(#WX.lib)\gcc_dll\msw
to
$(#WX.lib)\gcc_dll
or delete it completely, in this case you have to you go to the Tab "Custom variables"
and edit the variable WX_CFG to what you used during your wx-widgets build, standard is a empty string.
the wxWidgets I compiled with VC++ 6.0. I can't find the directory $(WX.lib)\gcc_dll but find $(WX.lib)\mswd subdirectory.
and it is nothing but a file .\wx\setup.h in it.
I'll make it easy for you:
1. Download
MinGW-3.1.0-1 and install it to C:\MinGW (I'll use this path for reference later)
2. Download
gcc-core-3.4.4-20050522-1.tar.gz and
gcc-g++-3.4.4-20050522-1.tar.gz and extract them to C:\MinGW
3. Download
binutils-2.16.91-20050827-1.tar.gz and extract it to C:\MinGW
4. Download
infozip. Extract it and add the .exe files to C:\MinGW\bin
5. Add C:\MinGW\bin and C:\MinGW\mingw32\bin to your PATH. You might have to reboot for changes to take effect here.
6. Download
wxMSW-2.6.2.zip and extract it to C:\Devel\
You should now have a folder C:\Devel\wxWidgets-2.6.2 with subfolders build and lib (and a lot of others).
7. Create a batch file called build.bat in C:\Devel\wxWidgets-2.6.2\build\msw
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 CFG=NonUnicode clean
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 CFG=NonUnicode
8. Run that batch file and wait for the build to finish. It could take a while.
10. Download a recent copy of Code::Blocks from
here so you can open the new build project files.
You can then open CodeBlocks-NewBuild.cbp and immediately build.
After building codeblocks, you will have a directory codeblocks\src\devel. Copy C:\Devel\wxWidgets-2.6.2\lib\gcc_dllNonUnicode\wxmsw26_gcc_custom.dll to that (the devel) directory.
Run codeblocks\src\update.bat
Your output files will be placed in codeblocks\src\output