Codeblock安装提示:Can't find compiler executable 无法找到编译器

来源:互联网 发布:淘宝网页不能正常显示 编辑:程序博客网 时间:2024/06/04 19:32

codeblock安装后,提示cant find compiler executable in your configured search paths for GNU GCC Compiler

可能的情况有两个:

1)安装的是不带编译器的版本

2)安装了带编译器的版本,但是没有指定正确的路径。

解决办法:

对于第一种情况,直接在官网下载带有编译器的版本;

对于第二种情况,需要手动的指定编译器的路径。具体操作如下:

a.在Code::Blocks的菜单中点击Settings->Compiler,如果安装了上面的GCC请在Selected Compiler选中GNU GCC Compiler.

b.点开Toolchain executables标签,点击Auto-detect之前的文件浏览,找到codebook安装的路径下面的MinGW文件夹,并且保存。

c.重新打开codeblock,问题应该就已经解决了。


0 0
原创粉丝点击