error: undefined reference to ‘cocos2d::ui::Button::setTitleFontSize(float)’
undefined reference to ‘cocos2d::ui::Button::create(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, cocos2d::ui::Widget::TextureResType)’
error: undefined reference to ‘cocos2d::ui::Widget::addTouchEventListener(std::__1::function<void (cocos2d::Ref*, cocos2d::ui::Widget::TouchEventType)>)’
为什么会报错呢我都有引入的
MK文件
LOCAL_WHOLE_STATIC_LIBRARIES := cocos_freetype2_static
LOCAL_WHOLE_STATIC_LIBRARIES += chipmunk_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos2dxandroid_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_gui_static
(call import-module,freetype2/prebuilt/android)
(call import-module,chipmunk)
(call import-module,platform/android)
(call import-module,ui)
$(call import-module,extensions)