首页 > 代码库 > VS2013编译protobuf报错:error C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe

VS2013编译protobuf报错:error C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe

今天碰到这个问题,网上找了好久, 解决方法如下

VS2013编译protobuf报错:error C4996: ‘std::_Copy_impl‘: Function call with parameters that may be unsafe
方法一 
右键点击工程 -> 属性 -> C/C++ -> 常规 -> SDL检查 
改为:否 (/sdl-) 
编译 

O了! 

方法二 
右键点击工程 -> 属性 -> C/C++ ->预处理器 
添加宏定义 _SCL_SECURE_NO_WARNINGS 
编译 

O了!

VS2013编译protobuf报错:error C4996: ‘std::_Copy_impl‘: Function call with parameters that may be unsafe

VS2013编译protobuf报错:error C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe