我的源程序如下:
#include <iostream.h>
int main(void)
{
cout<<"hello world!!!"<<endl;
return 0;
}
相当简单的一个程序,其实只是想测试下而已。
在终端下输入下面的命令:
$ g++ -o test test.cpp
输出如下:
test.cpp:1:22:错误: iostream.h:没有该文件或目录
test.cpp:4:错误:'cout'在此作用域中尚未声明
test.cpp:4:错误:'endl'在此作用域中尚未声明

确认该装的都装了,C++的库中的iostream.h我都能手动找得到,怎么就不认识那个库。也谷歌了许多,结果还是解决不了。 问题出在哪,高手来帮忙。
