关于Codeblocks出现Could not auto-detect installation path of “GNU GCC Compiler“... 的解决办法

关于Codeblocks出现Could not auto-detect installation path of "GNU GCC Compiler"... 的解决办法

1、使用Codeblocks编译时报错

报错如下:
Project/Target: “PROJECTNAME - Debug/Release”:
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 “Settings->Compiler…->Global compiler settings->GNU GCC Compiler->Toolchain executables” and fix the compiler’s setup.

Tried to run compiler executable 'C:\Users\SOMEONE\Applications\CodeBlocks\MinGW/bin/mingw32-gcc.exe', but failed!

2、解决办法,下载带有MINGW的安装包,如下

1、进入官网https://www.codeblocks.org/
2、选择 DownLoads
3、选择二进制下载 > Download the binary release
4、根据你的使用情况选择 windows 或者 linux ,(下面以windows为例),选择>Windows XP / Vista / 7 / 8.x / 10
5、选择下图箭头指向的安装包

图片:
箭头执行的按照
6、Next
在这里插入图片描述
7、Next
在这里插入图片描述
8、选择你要安装的路径,Install 即可
在这里插入图片描述
8、安装好打开工程就可以编译成功了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值