Atom gpp编译器给出"'C:UsersadminUser' is not recognized as an internal or..."错误

Atom gpp-compiler is giving "'C:UsersadminUser' is not recognized as an internal or..." error

本文关键字:recognized 错误 not as or is internal an 编译器 gpp Users      更新时间:2023-10-16

每当我尝试编译和运行hello world C++程序时,我只会得到一个带有错误'C:UsersadminUser' is not recognized as an internal or external command, operable program or batch file的命令提示符。 命令提示符错误的图片。

我尝试从用户 PATH 中添加和删除 gpp 编译器。不幸的是,这没有奏效。提前感谢任何帮助。

这是我尝试编译和运行的代码:

#include <iostream>
using namespace std;
int main()
{
cout << "Hello World";
return 0;
}

确保

  • "C:\MinGW\bin" &"C:\MinGW">在路径上注册
  • 检查 c/c++ 文件不使用符号否则重命名