|
发表于 2005-3-3 18:34:17
|
显示全部楼层
Post by duoxing
楼上的大哥不好意思,问问题方法错误了,下面把调式过程弄下来了请指教:
[root@duoxing programe]# g++ print.cpp
In file included from /usr/local/include/c++/3.3/backward/iostream.h:31,
from print.cpp:1:
/usr/local/include/c++/3.3/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.
[root@duoxing programe]#
这个是什么问题讷?
其实你要是能耐心看看英文,很快就能理解编译器给出的警告无非是告诉你使用的头文件过时了。应该使用<X>这样的头文件而不是<X.h>这样的头文件。 |
|