zoukankan      html  css  js  c++  java
  • 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”

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

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

    解决:删除cocos2d 里 cocos2dcocosplatformwin32CCStdC-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>--------------------- 

    作者:余不二
    来源:CSDN
    原文:https://blog.csdn.net/yu452148611/article/details/46636817

  • 相关阅读:
    网络爬虫概述
    Redis常见问题汇总
    分布式锁和Redis事务
    Redis主从复制
    数据持久化
    位图操作bitmap
    数据类型:Hash散列数据类型
    进程池
    事件Event实现消费者模型
    事件Event
  • 原文地址:https://www.cnblogs.com/hanframe/p/9979704.html
Copyright © 2011-2022 走看看