Oops, duplicated the error. Some reason CB and MinGW is not working if there is a space in the path to MinGW.
Edit: This almost has to be a MinGW GCC error; not sure, likely TDM is the place to first report it.
(Could be bin tools instead of MinGW GCC)
Tim S.
This happens when I use a tool-chain path of "C:\Program Files\CodeBlocks_12_11\MinGW".
My prior test used the same version of MinGW with
out a space in the path.
-------------- Build: Release Small in HelloWorld (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -fexceptions -Os -fno-rtti -fno-exceptions -ffunction-sections -fdata-sections -flto -Wmissing-include-dirs -c V:\SourceCode\CBProjects\Wiki\Creating_a_new_project\HelloWorld\hello.cpp -o obj\ReleaseSmall\hello.o
mingw32-g++.exe -Wall -fexceptions -Os -fno-rtti -fno-exceptions -ffunction-sections -fdata-sections -flto -Wmissing-include-dirs -c V:\SourceCode\CBProjects\Wiki\Creating_a_new_project\HelloWorld\main.cpp -o obj\ReleaseSmall\main.o
mingw32-g++.exe -o bin\ReleaseSmall\HelloWorld.exe obj\ReleaseSmall\hello.o obj\ReleaseSmall\main.o -s -flto -Os -Wl,--gc-sections -shared-libgcc -shared-libstdc++
c:/program files/codeblocks_12_11/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: c:/program: error loading plugin
collect2.exe: error: ld returned 1 exit status
c:/program files/codeblocks_12_11/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: c:/program: error in plugin cleanup (ignored)
Process terminated with status 1 (0 minutes, 28 seconds)
1 errors, 0 warnings (0 minutes, 28 seconds)