Errors:
jni/hellocpp/main.cpp:13: error: undefined reference to ‘__android_log_print’
jni/hellocpp/main.cpp:15: error: undefined reference to ‘cocos2d::Scheduler::PRIORITY_SYSTEM’
jni/hellocpp/main.cpp:15: error: undefined reference to ‘cocos2d::Scheduler::PRIORITY_NON_SYSTEM_MIN’
jni/…/…/cocos2d/cocos/network/HttpRequest.h:87: error: undefined reference to ‘cocos2d::Ref::Ref()’
jni/…/…/cocos2d/cocos/network/HttpRequest.h:103: error: undefined reference to ‘cocos2d::Ref::release()’
jni/…/…/cocos2d/cocos/network/HttpRequest.h:100: error: undefined reference to ‘cocos2d::Ref::~Ref()’
jni/…/…/Classes/AppDelegate.cpp:18: error: undefined reference to ‘cocos2d::Application::Application()’
jni/…/…/Classes/AppDelegate.cpp:22: error: undefined reference to ‘cocos2d::Application::~Application()’
jni/…/…/Classes/AppDelegate.cpp:34: error: undefined reference to ‘cocos2d::GLView::setGLContextAttrs(GLContextAttrs&)’
…
…
…
and goes on for awhile…
Here is my android.mk:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/extensions)
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/external)
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/cocos)
LOCAL_MODULE := cocos2dcpp_shared
LOCAL_MODULE_FILENAME := libcocos2dcpp
LOCAL_SRC_FILES := hellocpp/main.cpp \
../../Classes/AppDelegate.cpp \
../../Classes/class1.cpp \
../../Classes/class2.cpp
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes \
$(LOCAL_PATH)/../../cocos2d \
$(LOCAL_PATH)/../../cocos2d/cocos/network \
$(LOCAL_PATH)/../../cocos2d/cocos \
$(LOCAL_PATH)/../../cocos2d/extensions \
$(LOCAL_PATH)/../../cocos2d/external
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_extension_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_ui_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_network_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static
include $(BUILD_SHARED_LIBRARY)
$(call import-module,module1)
$(call import-module,module2)
I have looked around a lot and cant seem to find an asnwer. I reference the classes properly but keep getting undefined reference to …one of my classes.