vs 2015 编译cocos2dx 报错C1189 #error: Macro definition of snprintf conflicts with Standard Library func
来源:互联网 发布:113什么意思 网络聊天 编辑:程序博客网 时间:2024/05/16 17:21
本文由闭眼就天黑整理编辑,转载请注明:http://www.byjth.com/jiqiao/42.html | 闭眼就天黑专栏_个人博客_技术源于分享
电脑用360升级助手升级到了win10,决定新系统使用VS2015社区版。
装好vs2015打开原来的cocos2dx项目遇到了一个错误,C1189 #error: Macro definition of snprintf conflicts with Standard Library function declaration。
一直搞不明白是什么原因,搜索了大量资料才解决。
原因:vs 2015里面已经自己定义了snpritf(),而cocos里面又重新定义了一遍,所以出现了冲突;
#ifdef snprintf
#error: Macro definition of snprintf conflicts with Standard Library function declaration”
#endif
解决:删除cocos2d 里 cocos2d\cocos\platform\win32\CCStdC-win32.h的代码。
#if !defined(isnan)
#define isnan _isnan
#endif
#ifndef snprintf
#define snprintf _snprintf
#endif
0 0
- vs 2015 编译cocos2dx 报错C1189 #error: Macro definition of snprintf conflicts with Standard Library func
- vs 2015 编译cocos2dx 报错C1189 #error: Macro definition of snprintf conflicts with Standard Library func
- vs 2015 编译cocos2dx 报错C1189 #error: Macro definition of snprintf conflicts with Standard Library func
- VS 2015 编译一些库的时候,出现 error “fatal error C1189: #error: Macro definition of snprintf conflicts with St
- error “fatal error C1189: #error: Macro definition of snprintf conflicts with ...的新的解决办法
- SpringMVC 启动报错,conflicts with existing, non-compatible bean definition of same name and class ...
- VC 2008编译错误:fatal error C1189: #error : _WIN32_WINNT settings conflicts with _WIN32_IE setting
- fatal error C1189: #error : _WIN32_WINNT settings conflicts with _WIN32_IE setting
- fatal error C1189: #error : NTDDI_VERSION setting conflicts with _WIN32_WINNT setting
- vs 2015 编译cocos2dx 报错
- [置顶] vs 2015 编译cocos2dx 报错
- Cocos2dx Cygwin编译-重定义报错 multiple definition of 'typeinfo for xxx' 解决方法
- .\OUT\ANO_FLY.axf: Error: L6411E: No compatible library exists with a definition of startup symbol _
- Error: L6411E: No compatible library exists with a definition of startup symbol __main.
- Error: L6411E: No compatible library exists with a definition of startup symbol __main
- fatal error C1189: #error: VS 2015 Update 3 with Cumulative Servicing Release or higher is required
- 错误:fatal error C1189: #error : The C++ Standard Library forbids macroizing keywords. Enable warning
- 错误:fatal error C1189: #error : The C++ Standard Library forbids macroizing keywords. Enable warning
- centos下采用rpm方式安装mysql
- Eclipse Java EE IDE for Web Developers部署项目到Tomcat的方法
- 自定义字母索引View
- JQ的input change事件
- Android N 程序适配要点
- vs 2015 编译cocos2dx 报错C1189 #error: Macro definition of snprintf conflicts with Standard Library func
- jquery datatable 取当前点击列的配置
- 糖果机器人_0005_day2_页面跳转_码全
- Spring结合三层架构
- 面试总结
- 中文数据网络传输转码与解码过程浅析
- PHP压缩图片函数
- java spring mvc 文件上传教程
- #QQ#5849000010000010912#QQ#