什么是“使用-D_SCL_SECURE_NO_WARNINGS”意思? [英] What does "use -D_SCL_SECURE_NO_WARNINGS" mean?

查看:1974
本文介绍了什么是“使用-D_SCL_SECURE_NO_WARNINGS”意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个错误尝试编译我的曲线压缩程序,错误没有C4996,参数的函数调用可能是不安全的。它告诉我使用上面的。错误来自xutility头文件,我从来没有盯着之前。这是我必须输入到控制台的标志吗?有没有在线的引用...

I've got an error trying to compile my curve compression program, error no C4996, function call with parameters may be unsafe. It's telling me to use the above. The error is coming from xutility header file, which I've never laid eyes on before. is this a flag I have to input into a console? There is literally no reference to it online...

推荐答案

-D是一个命令行编译器标志,

-D is a command line compiler flag which causes the rest of the text to be treated as if there was a #define in your code.

在解决方案资源管理器中,右键单击项目,选择属性。将打开项目属性页。展开左侧树中的> C / C ++条目,然后选择Preprocessor。右窗格中的顶部条目应为预处理器定义。在该编辑框中,添加 _SCL_SECURE_NO_WARNINGS ,将其与其他条目分隔开;

In solution explorer, right click the project, select "properties". The project property page will open. Expand the ">C/C++" entry in the tree on the left and select "Preprocessor" under that. The top entry in the right pane should be "Preprocessor Definitions". In that edit box, add _SCL_SECURE_NO_WARNINGS, separating it from the other entries with a ;

这篇关于什么是“使用-D_SCL_SECURE_NO_WARNINGS”意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆