我刚决定使用C++,我曾经使用Python。我在平台上找到了 Sirius。关于这门语言的课程,都按他们说的做了。我从原始站点安装了Code::Blocks ,一切都很好,我编写了程序Hello, World!,启动并立即计算机给出了错误。请告诉我我的错误是什么。这是程序代码:
#include <iostream>
using namespace std;
int main()
{
cout<<"Hello, World! << endl;";
return 0;
}
这是错误:
Project/Target: "CPp - 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).
您要么没有安装编译器,要么选择了错误的编译器。当您选择指定的菜单项时,将打开一个设置对话框,您必须在其中正确指出编译器所在的位置(如果已安装)。如果没有安装,则需要安装它,然后在 Code::Blocks 中指定它的具体安装位置。