LinuxSir.cn,穿越时空的Linuxsir!

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

请教strstream.h问题

[复制链接]
发表于 2005-12-3 14:18:13 | 显示全部楼层 |阅读模式
请教大侠,下面错误是什么原因啊(gcc3.4.3)
程序出错:
In file included from
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/backward/iostream.h:31,
                from interpreter.h:17,
                 from interpreter.c:14:
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.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 <iostream> instead of the deprecated header
<iostream.h>. To disable this warning use -Wno-deprecated.
In file included from interpreter.c:14:
interpreter.h:18:22: strstream.h: 没有那个文件或目录
发表于 2005-12-3 21:19:52 | 显示全部楼层
请使用标准C++。
带.h的头文件是标准化以前的头文件,不推荐使用。而且strstream已经被stringstream取代,在sstream头文件中定义。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-4 21:44:02 | 显示全部楼层
我是最近才安装的fedaro3.0(gcc3.4.3),怎么才可以用标准c++?
请问要安装吗
谢谢
回复 支持 反对

使用道具 举报

发表于 2005-12-4 23:00:59 | 显示全部楼层
gcc3.4.3已经是支持C++标准的啦。问题的关键是编译的代码不符合c++标准,所以编译器才给出提示。
最好找本标准c++的教科书看看。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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