"Hello - Debug" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...
Run Code Online (Sandbox Code Playgroud)
当我尝试运行一个简单的HelloWorld程序时,我收到了上面的消息,如下所示。
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
Run Code Online (Sandbox Code Playgroud)
关于为什么会发生这种情况以及我如何解决它的任何想法仅供参考:我目前使用 GNU GCC 编译器,我也尝试更改它,但没有用。
感谢@Thrustmaster 的评论。对于将来遇到类似问题的任何人,只需转到Settings->Compiler and Debugger->ToolChain Executables ->Click Auto Detect on the compiler's installation directory. 快!IDE 会自动检测路径并正常工作!