CodeBlocks安装好后无法运行C++代码

错误代码

Tried to run compiler executable '-- No Compiler --/bin/ ' , but failed!
Skipping...
Nothing to be done (all items are up-to-date).

在这里插入图片描述

简单理解 就是 没有编译器

原因

程序默认安装在

C:\Program Files (x86)\CodeBlocks\MinGW

而一般情况下 我们都换装在其他盘中

从而导致程序无法识别CodeBlocks新的安装路径

方案

详细步骤如下

Codeblocks -> Settings -> Compiler… ->GNU GCC Compiler->Toolchain executables -> Auto-detefct
在这里插入图片描述

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐