LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 737|回复: 1

rh8.0的KDevelop编译不能正常工作???

[复制链接]
发表于 2002-11-11 01:17:06 | 显示全部楼层 |阅读模式
写如下code:
#include<iostream.h>
int main(){
  cout<<"hello world!"<<endl;
}
包存在/root 里 hello.cpp,
在konsole编译:
g++ -o hello hello.cpp
enter,以后提示如下:
In file included from /usr/include/c++/3.2/backward/iostream.h:31,
                 from hello.cpp:1:
/usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using
one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
苦恼中,恳请帮助.
还有就是编译生成文件后,如何执行???
发表于 2002-11-11 14:53:00 | 显示全部楼层
直接用./hello即可
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表