我现在有一个使用cocos2dx ver3.0的游戏项目,现在,我已经遇到了这个错误:
'extension' in namespace 'cocos2d' does not name a type
构建源代码时会出现此错误,据我所知,到目前为止,扩展程序将在Android.mk中配置,如下所示:
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../cocos2d/cocos/editor-support
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../cocos2d/extensions
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static
LOCAL_WHOLE_STATIC_LIBRARIES += box2d_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_extension_static
那么为什么编译器会提示我那条消息,请给我一个帮助。 这是总堆栈跟踪:
In file included from jni/../../Classes/views/include/../scene/GameScene.h:9:0,
from jni/../../Classes/views/include/views.h:4,
from jni/../../Classes/BusinessHandler.h:6,
from jni/../../Classes/AppDelegate.cpp:2:
jni/../../Classes/views/include/../scene/../layer/InventoryLayer.h:29:5: error: 'extension' in namespace 'cocos2d' does not name a type
cocos2d::extension::ScrollView* checkContentScrollView;
^