目录
一、从官网下载codeblock安装包
1.打开官网,点击进入Dowloads
2.点击Download the binary release
3.往下拉,点击第一个Windows XP/Vista/7/8.x/10
4.一定要选择FossHUB,下载后自带MinGW文件
5.点击进入后,往下拉,选择你所需的版本,后面要有including compiler
6.下载成功后,一直NEXT,最后FINISH。
二、解决”The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.“ 的问题
7.新建一个项目,还不能成功编译,会出现以下错误。
Project/Target: "test - Debug": The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler. Probably the toolchain path within the compiler options is not setup correctly?! Do you have a compiler installed? Goto
问题的原因:没有对Compiler进行环境配置,解决方法如下: