若遇到 The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
的問題,主要是因為找不到 compiler,可以透過以下方法解決:
前往 Setting -> Compiler -> Global Compiler Settings -> Toolchain Execuatables (tab).
在 compiler’s installation directory 的地方按下:Auto-detect,他就會自動找尋你的 compiler,再按下 ok 就可以了