;
原因: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的代码
<p>
#if !defined(isnan)
#define isnan _isnan
#endif</p><p><strong>//#ifndef snprintf
//#define snprintf _snprintf
//#endif</strong></p><p>#endif // __MINGW32__</p>
@H_
301_2@
@H_
301_2@