我把编译选择项设置为debug(python ${ProjDirPath}/build_native.py -b debug),编译过程提示log非cocos2d成员(log是CCLOG调用的),这怎么解决
In file included from jni/…/…/cocos2d/cocos/./base/CCData.h:29:0,
from jni/…/…/cocos2d/cocos/./base/CCData.cpp:26:
jni/…/…/cocos2d/cocos/./base/CCData.cpp: In constructor ‘cocos2d::Data::Data()’:
jni/…/…/cocos2d/cocos/./platform/CCPlatformMacros.h:229:33: error: ‘log’ is not a member of ‘cocos2d’
#define CCLOGINFO(format,…) cocos2d::log(format, ##VA_ARGS)
附上CCLOG的源码
// cocos2d debug
#if !defined(COCOS2D_DEBUG) || COCOS2D_DEBUG == 0
#define CCLOG(...) do {} while (0)
#define CCLOGINFO(...) do {} while (0)
#define CCLOGERROR(...) do {} while (0)
#define CCLOGWARN(...) do {} while (0)
#elif COCOS2D_DEBUG == 1
#define CCLOG(format, ...) cocos2d::log(format, ##__VA_ARGS__)
#define CCLOGERROR(format,...) cocos2d::log(format, ##__VA_ARGS__)
#define CCLOGINFO(format,...) do {} while (0)
#define CCLOGWARN(...) __CCLOGWITHFUNCTION(__VA_ARGS__)
#elif COCOS2D_DEBUG > 1
#define CCLOG(format, ...) cocos2d::log(format, ##__VA_ARGS__)
#define CCLOGERROR(format,...) cocos2d::log(format, ##__VA_ARGS__)
#define CCLOGINFO(format,...) cocos2d::log(format, ##__VA_ARGS__)
#define CCLOGWARN(...) __CCLOGWITHFUNCTION(__VA_ARGS__)
#endif // COCOS2D_DEBUG
```