关于windows下编译caffe中blob C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe?

来源:互联网 发布:e领网络卡盟 编辑:程序博客网 时间:2024/05/24 05:22

今天在windows下配置了caffe,在编译blob.cpp文件时,发生了如下错误

error  C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe

错误 34 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 caffeTest

解决方法:

打开blob.cpp的属性

属性-> c\c++ -> 预处理器 -> 预处理器定义 里添加
_SCL_SECURE_NO_WARNINGS 编译成功 ,

0 0
原创粉丝点击