I have errors in linking executable files. Logging the command line I see C::B is launching this:
mingw32-g++.exe -LS:\wxWidgets2.8\lib\gcc_lib -o O:\Projects\InterfaceBuilder\CodeBlocks\Debug Win32 (MinGW)\InterfaceBuilder.exe [etcetcetc]
Obviously, the path after -o has to be quoted. As a quick fix, I added quotes around $exe_output in the Advanced compiler options for the "Link object files to executable" command (I think the command "Link object files to console executable" is affected too).
I should add that in my case the output file name comes from a further parsing of macros - precisely, this is what is written in the project options:
$(#OutPath)\Projects\InterfaceBuilder\CodeBlocks\$(TARGET_NAME)\InterfaceBuilder.exe
Maybe QuoteIfNeeded() runs before the macros expansion?