我无法在代码块中编译c ++程序。它给我错误

时间:2019-10-28 06:36:05

标签: c++ c++17 codeblocks

我正在运行程序(单个Hello world程序)时在代码块中。

这是代码:

#include <iostream>

using namespace std;

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

它给了我一个错误:

Project/Target: "test - Debug":
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:\MinGW/bin/mingw32-gcc.exe', but failed!

Skipping...
Nothing to be done (all items are up-to-date).

0 个答案:

没有答案