I would really recommend starting over with both mingw 3.4.5 and a new CB nightly...
If you install mingw first, I think your new CB will autodetect your compiler, with all the correct paths set up!
Set up mingw and codeblocks up in different folders so you can upgrade either one separately!
Mingw manual install:
download from
http://sourceforge.net/project/showfiles.php?group_id=2435:
binutils-2.17.50-20060824-1.tar.gz
gcc-core-3.4.5-20060117-1.tar.gz
gcc-g++-3.4.5-20060117-1.tar.gz
mingw32-make-3.81-2.tar.gz
mingw-runtime-3.12.tar.gz
mingw-utils-0.3.tar.gz
w32api-3.9.tar.gz
Create a new directory for mingw (c:\mingw) - do not install over an old installation!
extract all the above files to your new mingw directory - (all the appropriate sub-folders should be preserved)
if you want the debugger, find gdb-6.3-2.exe, and point the installer to your mingw folder.
CodeBlocks - follow the directions for installing a nightly build - (rc2 is way outdated)
Grab the nightly AND the unicode dll from
http://forums.codeblocks.org/index.php/topic,6409.0.htmlextract your nightly in a new folder - DO NOT install over your old rc2, and NOT in your mingw folder.
extract your unicode dll to the same folder.
Run your new codeblocks, and it should autodetect your new mingw compiler(I think)
This worked for me on XP - hope it helps