命名空间'cocos2d'中的'extension'没有命名类型

时间:2014-10-19 15:57:54

标签: android build cocos2d-x cocos2d-x-3.0

我现在有一个使用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;
 ^

0 个答案:

没有答案