您的位置:首页 > 其它

To disable this warning, use -D_SCL_SECURE_NO_WARNINGS

2016-06-15 16:54 309 查看
编译caffe时遇到问题:

错误 35 error C4996: ‘std::_Copy_impl’: Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ ‘Checked Iterators’ D:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xutility 2132 1 caffe_project

解决办法:

加入预处理器(项目属性—-C/C++—-预处理—-预处理器定义):

_SCL_SECURE_NO_WARNINGS
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: