编译现象疑惑.~.~.~

xxmv99 xxmv99 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
#include <iostream.h>

int main()
{
int x(10);
cout<<x<<endl;
return 0;
}
刚刚开始学C++,只是个环境测试程序,在g++ -o 1 1.cpp后总会有一大串提示:

In file included from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/backward/ios
tream.h:31,
from 1.cpp:1:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/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.

编译能顺利通过,就是有点不爽,那大概意思也明白,就是不晓得怎么做哈,,,赐教.~
...全文
评论 17
收藏 已收藏
分享
返回顶部
xxmv99
C语言 70,039 成员 243,237 内容