1.http://www.tomsguide.com/forum/247129-49-codeblocks-05mingw-setup-forums
o to menu "Settings->Compiler and debugger" of codeblocks. Then select you compiler in the drog down list and choose the tab "Toolchain executables". Now configure the path of the compiler binaries e.g. /usr/local. Do not add the bin-path (read the note!).
Bye,