vs 2015 编译cocos2dx 报错C1189 #error: Macro definition of snprintf conflicts with Standard Library func
来源:互联网 发布:彩票数据下载 编辑:程序博客网 时间:2024/05/23 21:43
转自: 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
本文由闭眼就天黑整理编辑,转载请注明:http://www.byjth.com/jiqiao/42.html | 闭眼就天黑专栏_个人博客_技术源于分享
标签: cocos2dx环境 cocos2dx教程 win10+cocos2dx cocos2dx错误
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
- 数据库设计三大范式
- 一份给艺术爱好者的书单
- 安装oracle和plsql时的一点感想
- 转载红脸书生的算法策略总结
- 关于CPU 缓存Cache
- vs 2015 编译cocos2dx 报错C1189 #error: Macro definition of snprintf conflicts with Standard Library func
- stl作用
- centos6.5实践(1):基础配置
- synchronized的使用方法(1)
- 机房重构之DataTable转泛型
- 一个简单的实现不同权限的用户登录后看到不同的菜单设计的数据库表清单
- 深度学习之-caffe预测、特征可视化python接口调用 (6)
- Android使用TabLayout实现选项卡
- Maven项目中不打包 *.hbm.xml 映射文件