... uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]
Hi zyd, go 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 t...