|
发表于 2003-3-7 09:04:28
|
显示全部楼层
Re: 为什么我的"hello world"通过不了编译??!!
最初由 aweil 发布
我刚装上readhat linux 8.0。
然后
$ vi hello.cpp
// 以下为源代码
#include<iostream>
int main()
{
cout<<"hello world "<<endl;
return 0;
}//end of code
$g++ -o hello hello.cpp
编译器提示cout .endl undefine
为什么会出现这种情况?
iostream好象少了个.h吧 |
|