vs 2015 编译cocos2dx 报错C1189 #error: Macro definition of snprintf conflicts with Standard Library func
来源:互联网 发布:windows 10虚拟光驱 编辑:程序博客网 时间:2024/05/23 23:55
装好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
1 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
- 2017 京东 笔试 编程题 解题 幸运数
- 【Oracle 11g】ORA-01555: snapshot too old(快照过旧)错误
- vim自动打开跳到上次的光标位置
- WKWebView针对于Cordova的IOS平台性能提升
- UVA424 - Integer Inquiry
- vs 2015 编译cocos2dx 报错C1189 #error: Macro definition of snprintf conflicts with Standard Library func
- 《TCP/IP详解 卷1:协议》 读书笔记 第19章 TCP的交互数据流
- Android 基础:Notification
- Gradle中的buildScript代码块
- SVG_filter滤镜标签详解2
- linux命令删除当前目录即其子目录下的所有文件夹
- zookeeper原理二
- 更换独显和核显
- 转-各种排序动图