g++: fatal error: no imput files linux
g++: fatal error: no imput files linux
我正在尝试在 linux mint shell 上编译以下 cpp 文件:
#include <iostream>
using namespace std;
int main()
{
cout<<"Hello"<<endl;
return 0;
}
可能是最基本的程序,因为我只是想在 shell
上测试编译
我打赏了:
g++ -o hello.cpp hello
结果:
g++: error: hello: no such file or directory
g++: fatal error: no imput files
compilation terminated
我做错了什么?
它是:
g++ -o 你好 hello.cpp
-o 表示输出文件的名称
我正在尝试在 linux mint shell 上编译以下 cpp 文件:
#include <iostream>
using namespace std;
int main()
{
cout<<"Hello"<<endl;
return 0;
}
可能是最基本的程序,因为我只是想在 shell
上测试编译我打赏了:
g++ -o hello.cpp hello
结果:
g++: error: hello: no such file or directory
g++: fatal error: no imput files
compilation terminated
我做错了什么?
它是: g++ -o 你好 hello.cpp
-o 表示输出文件的名称