问题:Add the option /D_SCL_SECURE_NO_DEPRECATE to the compilation command

解决方案:项目属性 –> 配置属性 –> C/C++ –> 命令行 –> 加上 /D_SCL_SECURE_NO_DEPRECATE

参考:

These are compilation options that I typically enable for any C++ projects in Visual Studio. They should go in the project's property settings, underConfiguration Properties->C/C++->Command Line, in the Additional optionstextbox. They are listed here exactly as they should be entered in that box (equal signs and all).

/MP : This enables multi-process compilation, which can provide a significant speed boost on the multi-core processor you likely have in your development (or build) machine. As the MSDN documentation states, it is not compatible with the Enable Minimal Rebuild option, which, depending on the situation, may negate any performance advantage this switch has. Disabling minimal rebuild is not as bad as it sounds1 and in my projects I've found that using/MP confers a significant improvement in compilation time. You definitely want to enable it for Release builds, at least. Reference.
/D_CRT_SECURE_NO_WARNINGS : This switch disables the warnings that Visual Studio spits out if you use any of the C RunTime functions that Microsoft has provided secure replacements for (such as strncpy). This isn't necessarily a bad idea, but their safe functions are not part of the standard and are thus non-portable. Reference.
/D_SCL_SECURE_NO_WARNINGS : Just like the switch above, only for the Standard C++ Library (anything in the std namespace). Reference.
/D_SECURE_SCL=0 : Disables checked iterators. Disabling this feature can improve performance when using iterators, at the expense of less protection against unsafe iterator use. Generally there isn't too much of a performance difference (a Visual C++ lead states that they measured about a 6% difference in this feedback / bug page) so it may be worth leaving it on most of the time. Reference.

Note that /D_CRT_SECURE_NO_WARNINGS and /D_SCL_SECURE_NO_WARNINGS are/D_CRT_SECURE_NO_DEPRECATE and /D_SCL_SECURE_NO_DEPRECATE, respectively, in versions prior to Visual Studio 2008.

Disabling Minimal Rebuild does not mean that the whole project gets rebuilt every time, just that Visual Studio uses a "was this .cpp/.h modified?" approach instead of trying to determine if the exact changes you made warrant a recompile. ↩

在编译命令行中添加 /D_SCL_SECURE_NO_DEPRECATE相关推荐

  1. 【转帖】windows命令行中java和javac、javap使用详解(java编译命令)

    windows命令行中java和javac.javap使用详解(java编译命令) 更新时间:2014年03月23日 11:53:15   作者:    我要评论 http://www.jb51.ne ...

  2. 命令行中编译运行C/C++程序(多个)

    此处运行环境是在Windos下,运行cmd命令进入DOS界面,Linux中的运行过程有做说明. 首先,如果想在DOS窗口中进行C/C++代码的编译,则需要先配置gcc的环境变量 1.使用g++进行编译 ...

  3. linux一条命令添加用户并设置密码,linux中如何通过命令行来添加用户并设置密码...

    linux中如何通过命令行来添加用户并设置密码 (7页) 本资源提供全文预览,点击全文预览即可全文预览,如果喜欢文档就下载吧,查找使用更方便哦! 14.90 积分 LINUX中如何通过命令行来添加用户 ...

  4. 学以致用——命令行中使用Java模块化技术编译、打包、运行iKb知识库应用

    需求说明 Eclipse环境下,由于未知原因,运行的iKb知识库应用界面不稳定(有时全屏,有时会缩小很多,导致界面可读性很差),如下图所示: 这个问题随着本人所使用的的JDK版本和Eclipse版本的 ...

  5. mysql隐藏密码_MySQL在Linux系统中隐藏命令行中的密码的方法

    在命令行中输入命令并不是一个好主意,会造成安全问题.但是如果你决定去写一个应用,而这个应用需要在命令行中使用密码或者其他敏感信息.那么,你能通过以下方法禁止系统的其他用户轻易的看到这些敏感数据 呢?, ...

  6. 如何使用cmd进入打印机选项_怎样用命令行方式添加打印机端口? (已解决)

    命令行方式添加打印机是比较简单的,现在我的问题是这样的, 有一台网络打印机,用下面附录的方式安装驱动程序是没有问题的, 一个DOS命令就可以搞定,但是需要创建一个TCP/IP 的端口,即不是 用的LP ...

  7. 如何使用命令行中的“message”和“description”进行更改? [重复]

    本文翻译自:How to commit a change with both "message" and "description" from the comm ...

  8. linux php 指令,在 Linux 命令行中使用和执行 PHP 代码(一)

    PHP是一个开源服务器端脚本语言,最初这三个字母代表的是"Personal Home Page",而现在则代表的是"PHP:Hypertext Preprocessor& ...

  9. 在命令行中管理 Wifi 连接

    在命令行中管理 Wifi 连接 无论何时要安装一款新的 Linux 发行系统,一般的建议都是让您通过有线连接来接到互联网的.这主要的原因有两条:第一,您的无线网卡也许安装的驱动不正确而不能用:第二,如 ...

  10. linux裁剪图片的软件,ImageMagick教程:如何在Linux命令行中剪裁图像

    问题:我想要去除图像文件中的白色空白,有没有什么便捷的方法能在Linux命令行中对图像文件进行剪裁? 当涉及到在Linux中转换或编辑图像文件时,ImageMagick毫无疑问是最为熟知的一体化软件之 ...

最新文章

  1. Python一键转Java?“Google翻译”你别闹
  2. 【经典书】图论,322页pdf
  3. php点击按钮后弹窗,如何在静态页添加按钮,点击时弹出功能界面
  4. 【Android 进程保活】提升进程优先级 ( 使用前台 Service 提高应用进程优先级 | 启动相同 id 的第二个前台 Service 关闭通知 )
  5. san-hot-loader 应用及原理实现
  6. zigbee zstack 串口,按键,消息,定时器
  7. 日语学习-多邻国-平假名
  8. 深度学习-语音处理-语音分离入门学习(Speech separation)
  9. 冬日暖阳,侯捷畅谈技术人生与读书感悟
  10. 计算机上的闹钟怎么设置方法,pconline,教您电脑闹钟怎么设置
  11. 铝巨人铝模软件_助力建筑工业化发展PKPM-LMB铝模设计软件正式发布
  12. 什么是winpe,winpe系统有什么作用?
  13. 2023年法定节假日信息表-MySQL
  14. 并联机器人开题报告怎么写_华东交通大学机械工程专硕培养方案怎么样?
  15. 申威26010 芯片 服务器,解析申威26010处理器结构(附:国产超算发展史)
  16. linux进入紧急修复模式,将CentOS 7/8、RHEL 7/8引导到紧急模式/恢复模式的方法
  17. 运行mbedtls自带Demo ssl_client的记录
  18. 浙大郑烨:一位寒门状元的重生
  19. 昆仑通态和台达变频器通讯自己做的通讯例子,可以控制变频器启停,点动,调速
  20. 电子烟二手烟对人有伤害吗

热门文章

  1. AdaBoost算法实例详解
  2. windows常用系统命令
  3. win7台式机解决插入耳机没有声音以及显示麦克风未插入的解决方法
  4. JS--历史搜索记录的实现
  5. 计算机如何与光猫连接网络,路由器怎么连接猫和电脑 路由器连接详解【图文】...
  6. 浅谈数据中心 IT 机房的空气调节(下篇)-制冷中断
  7. [UE4]计算小地图比例尺
  8. 叶俊:别让“对抗”惯性摧毁你的幸福人生
  9. 水溶性ZnCdS/ZnS量子点蓝光PL400nm-480nm
  10. chrome扩展程序_如何实施Chrome扩展程序