C++ 我能';t编译c++;用代码块编写程序。这给了我错误

C++ 我能';t编译c++;用代码块编写程序。这给了我错误,c++,c++17,codeblocks,C++,C++17,Codeblocks,当我运行程序(单个Hello world程序)时,在代码块中 以下是代码: #include <iostream> using namespace std; int main() { cout << "Hello world!" << endl; return 0; } 你安装了编译器吗?Blocks是一个IDE。它没有编译器,去吧。下载codeblocks-17.12-setup.exe。注意:CODEBROCKS—1712 Stupp

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

以下是代码:

#include <iostream>

using namespace std;

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

你安装了编译器吗?Blocks是一个IDE。它没有编译器,去吧。下载codeblocks-17.12-setup.exe。注意:CODEBROCKS—1712 Stupp.EXE文件包含代码:所有插件都有块。C语言不是C++,问题是C++。强烈建议删除
c
“标记”
gcc
编译器用于c程序。强烈建议使用
g++
gpp
确定您使用的语言应该是第一步。如果你想使用C++,使用C++编译器,使用C++标签。C标签是不相关的。
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).