在VS2012中 集成protobuf 文件时, 编译出现问题
来源:互联网 发布:计划提醒软件 编辑:程序博客网 时间:2024/05/21 19:45
在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)
0 0
- 在VS2012中 集成protobuf 文件时, 编译出现问题
- 在lua环境中使用protobuf ,编译protobuf文件
- vs2012编译protobuf
- vs2012下编译protobuf
- vs2012编译protobuf
- 在vs2012下编译出现Msvcp120d.dll 丢失的问题
- vs2012安装Qt+编译protobuf
- clone() 在编译中 出现的问题
- 在VS2012中配置opencv2.4.10的步骤,及测试程序调试时,出现的各种问题
- 在VS2012中编译lua源码
- 在VS2012中编译C语言程序
- 在MyEclipse中,集成JBoss出现的问题
- Qt工程在Linux下编译时出现.ui文件编译不通过的问题
- Qt工程在Linux下编译时出现.ui文件编译不通过的问题
- 在VS2012平台上编译cocos2d引擎出现exit()无法识别问题和cocos2d.lib路径问题
- VS2012中出现“无法启动程序...debug\abc.exe,系统找不到指定文件”的问题!
- vs2012下编译一个opencv程序时,一直出现msvcp120d.dll文件丢失的提示信息
- protobuf 使用时出现的问题
- ajax接受后台传输boolean类型,解析为String类型解决办法
- Java中Iterator 的用法
- easyui-form的一些技巧
- Spring MVC 简介
- 移动端设备媒体查询记录
- 在VS2012中 集成protobuf 文件时, 编译出现问题
- 生成带图片的二维码,实际应用
- 【Websoket】实时推送图像数据,前端实时显示
- 《我叫范雨素》手记原文
- linux下根据ip调用命令获取mac
- Qt之图形(QPainterPath)
- OC封装小菊花效果---OC和swift3.0同样适用
- 由Maven管理jar文件找不到而引出的问题java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRunt
- iOS开发系列 ---- UI(UICollectionView的使用)