[问题]Ubuntu下编译C++程序的问题

软件和网站开发以及相关技术探讨
回复
mousefire
帖子: 7
注册时间: 2007-05-13 1:52

[问题]Ubuntu下编译C++程序的问题

#1

帖子 mousefire » 2007-07-06 13:25

按照那个精华帖子把build-essential装的了,那个C程序也能编译成功,自己写了个简单的C++程序:
#include <iostream>
using namespace std;
int main()
{
cout<<"hello world"<<endl;
return 0;
}
编译通不过,弹出来的东西很多我也看不懂。。。求教。。。谢谢各位了~~~
aningstar
帖子: 58
注册时间: 2007-02-05 23:59

#2

帖子 aningstar » 2007-07-09 12:19

g++ test.cpp -o testc
aningstar
帖子: 58
注册时间: 2007-02-05 23:59

#3

帖子 aningstar » 2007-07-09 12:22

用g++,不要用gcc
回复