Code :: Blocks的无效工具链错误 [英] Invalid toolchain error with Code::Blocks

查看:160
本文介绍了Code :: Blocks的无效工具链错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

"Hello - Debug" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...

当我尝试运行简单的 HelloWorld 程序。

I get the above message when I try to run a simple HelloWorld program as below.

#include <iostream>

using namespace std;

int main()
{
    cout << "Hello world!" << endl;
    return 0;
}

关于这种情况发生的原因以及如何解决的任何想法都是有用的
仅供参考:目前,我正在使用GNU GCC编译器,我也尝试更改此设置,但没有用。

Any idea as to why this is happening and how I could solve it would be useful FYI : Im using the GNU GCC compiler at the moment, I tried changing this too but there was no use.

推荐答案

感谢@Thrustmaster的评论。对于以后遇到类似问题的任何人,只需转到 Settings-> Compiler and Debugger-> ToolChain Executables->在编译器的安装目录上单击自动检测。快点! IDE会自动检测路径并起作用!

Thanks to @Thrustmaster's comment. For anyone stuck with a similar problem in the future just go to Settings->Compiler and Debugger->ToolChain Executables ->Click Auto Detect on the compiler's installation directory . Presto! The IDE auto-detects the path and works!

这篇关于Code :: Blocks的无效工具链错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆