vim hello.cpp
i
#include <iostream>
int main(){
std::cout << "Hello Linux!" << std::endl;
return 0;
}
shift ;
wq
g++ hello.cpp -o test
./test
一直听说Linux用gcc编译.. 一直报错 我就无语O__O "…
原来! C++程序是用g++ !!!
vim hello.cpp
i
#include <iostream>
int main(){
std::cout << "Hello Linux!" << std::endl;
return 0;
}
shift ;
wq
g++ hello.cpp -o test
./test
一直听说Linux用gcc编译.. 一直报错 我就无语O__O "…
原来! C++程序是用g++ !!!