Warning This file includes at least one deprecated or antiquated header
我是在IOS上用GDB编译,也是包如下错误,参考这边文章以后就OK了
把我得#include "deque.h" 改成
#include <deque>, warning消失
以下为转载内容:
版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
http://jadue.blogbus.com/logs/31168910.html
用DEV-C++编译是总是有警告:
32:2 C:\Dev-Cpp\include\c++\3.4.2\backward\backward_warning.h #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. V-C++,
那么你应该这样(新标准)如下:
#include <iostream> //C++头文件,去掉.h
#include <fstream>
#include <cstdlib> //C头文件,在原有文件名前加c,并去掉.h
using namespace std; //包括std名字空间
int main() //main函数必须返回int型,不再支持void
{
ofstream fout("output.dat", ios_base::binary);
//在文件操作中使用ios_base类代替早期的ios类
return 0; //这一条语句何以省略
}
Warning This file includes at least one deprecated or antiquated header相关推荐
- 解决DEV C++警告 [Warning] #warning This file includes at least one deprecated or antiquated header ……
警告原文: C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\backward\b ...
- 成功解决Future Warning: The sklearn.neighbors.dist_metrics module is deprecated in version 0.22 and wil
成功解决Future Warning: The sklearn.neighbors.dist_metrics module is deprecated in version 0.22 and wil ...
- warning C4995: “....”: 名称被标记为 #pragma deprecated
warning C4995: "....": 名称被标记为 #pragma deprecated 该错误意思是说某个函数已经被标记为过时了,最好不要用,在将来的版本中,该函数可能就 ...
- WARNING:tensorflow:`add_update` `inputs` kwarg has been deprecated.
Tensorfow 2.1+版本add_update函数已经弃用inputs参数,重新该方法时注意不使用该参数 WARNING:tensorflow:`add_update` `inputs` kwa ...
- Warning:The `android.dexOptions.incremental` property is deprecated and it has no effect on the buil
android studio升级后报的错 Warning:The android.dexOptions.incremental property is deprecated and it has no ...
- Java HotSpot(TM) 64-Bit Server VM warning:Options -Xverify:none and -noverify were deprecated in ..
刚刚用IDEA学习springBoot. 运行程序时,出现了这种情况 Java HotSpot(TM) 64-Bit Server VM warning: Options -Xverify:none ...
- 安装MySQL报错:[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defau
win10安装mysql5.7.23(免安装版本)过程中 在执行mysqld --initialize命令时 报错: [Warning] TIMESTAMP with implicit DEFAULT ...
- Java HotSpot(TM) 64-Bit Server VM warning:Options -Xverify:none and -noverify were deprecated
SpringBoot项目中出现Java HotSpot(TM) 64-Bit Server VM warning: Options -Xverify:none and -noverify were d ...
- failed to register layer: Error processing tar file(exit status 1): archive/tar: invalid tar header
网上通用解法: 保存镜像时: docker save -o [image].tar // 重点是加上-o选项 load镜像时: docker load -i [image].tar https ...
最新文章
- 为减少用户电话排队,阿里研发了智能客服调度系统
- python selenium定位元素方法,python + selenium 练习篇 - 定位元素的方法
- html:(32):字体,字号,颜色
- Linux中的Diff和Patch
- Ubuntu 14.04 设置静态IP地址全攻略
- wx-微信公众号-静默登陆授权
- 参加国际学术会议心得体会
- SuperMap iDesktop 8C 空间分析
- “JEPG”到“TXT”,魔幻的Loot
- java web查询某个时间段记录
- 小波分析中db1,db2,db3小波有何不同?
- c语言报告对老师的致谢,论文致谢对老师的感谢-论文老师的致谢词怎么写?
- 认识Android应用开发(一)
- nginx常用的优化配置
- Matlab系列之数组(矩阵)的生成
- 半导体器件相关专业词汇积累ing
- 愤怒的小鸟4只编外鸟_愤怒的小鸟2编外怎么得
- 编程实践(Pandas)Task05
- Linux调试私房菜(四)揭开链接器的面纱、汇编语言的内嵌编程
- 利用计算机网线传东西,两个电脑用网线传东西_两台电脑用网线传文件