Cocos2d-x   发布时间:2022-05-03  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了vs 2015 编译cocos2dx 报错大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

VS 2015 compiling cocos2d-x 3.3 error “fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration”

@H_673_15@ ;

@H_673_15@ 原因:vs 2015里面已经自己定义了snpritf(),而cocos里面又重新定义了一遍,所以出现了冲突;

@H_673_15@

#ifdef snprintf
    #error: Macro definition of snprintf conflicts with Standard Library function declaration”
#endif
@H_673_15@

@H_673_15@ 解决:删除cocos2d 里 cocos2d\cocos\platform\win32\CCStdC-win32.h的代码

<p>
#if !defined(isnan)
 #define isnan _isnan
#endif</p><p><strong>//#ifndef snprintf
//#define snprintf _snprintf
//#endif</strong></p><p>#endif // __MINGW32__</p>

大佬总结

以上是大佬教程为你收集整理的vs 2015 编译cocos2dx 报错全部内容,希望文章能够帮你解决vs 2015 编译cocos2dx 报错所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。