在VS2012中 集成protobuf 文件时, 编译出现问题
2017-04-28 16:48
1391 查看
在VS2012中 集成protobuf 文件时, 编译出现问题:
1.people.pb.cc(448): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
解决方案:
在 people.pb.cc 上右键属性-> C/C++ ->预编译头(选择不使用预编译头)
2.xutility(2176): 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'
1> c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2157) : see declaration of 'std::_Copy_impl'
解决方案:
属性 -> C/C++ -> 预处理器 -> 预处理器定义 (添加 _SCL_SECURE_NO_WARNINGS)
1.people.pb.cc(448): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
解决方案:
在 people.pb.cc 上右键属性-> C/C++ ->预编译头(选择不使用预编译头)
2.xutility(2176): 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'
1> c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2157) : see declaration of 'std::_Copy_impl'
解决方案:
属性 -> C/C++ -> 预处理器 -> 预处理器定义 (添加 _SCL_SECURE_NO_WARNINGS)
相关文章推荐
- c#networkcomms protobuf-net 文件加载出现问题
- ubuntu16.04下编译caffe出现.build_release/lib/libcaffe.so: undefined reference to google ::protobuf...的问题
- VS保存和编译问题] 总是出现另一个程序正在使用此文件,进程无法访问
- windows下面编译protobuf,生成.a文件供android NDK使用
- protobuf如何用proto文件导出C++代码文件及链接protobuf静态库问题
- protobuf-gen-lua 编译dll文件
- linux平台下进行thrift和protobuf的IDL文件的编译缺少类库的解决办法
- 在Linux中编译文件是出现 Your intltool is too old. You need intltool 0.35.0 or later的问题怎么解决
- 我把一个VC6的工程转换为VS2008的工程后,编译总是出现找不到而且不能升级vc90.pdb文件的问题,error C2471--解决办法 2010-9-16 15:01
- 用anjuta编译gtk程序时出现类似与"main.c::10:21:gtk/gtk.h:没有那个文件和目录"问题的解决
- 关于命令行中javac 编译成功,用 java 运行 class 文件出现 “ 找不到或无法加载主类 ” 的问题
- VS2012新建cocos2dx项目,出现无法打开包括文件CCstdC.h等**.h之类的问题
- LabVIEW编译时出现文件找不到的问题原因及其解决办法
- protobuf windows java 环境搭建(编译出protobuf需要的jar包,解决编译时OutOfMemory的问题)
- 在VS2012平台上编译cocos2d引擎出现exit()无法识别问题和cocos2d.lib路径问题
- 理解VS2005 编译程序后出现的 manifest 后缀文件的问题
- Googole Protocol Buffer在VS2008中的编译问题libprotobuf.lib(substitute.obj) : error LNK2001
- 编译含libxml2依赖关系的文件时出现的问题
- CTeX 在编译时出现的图片文件无法识别问题
- 关于google protobuf编译找不到不到google\protobuf\stubs\common.h头文件的问题