unsatisfied linking problem when using prebuilt library

Put problems with the Android NDK in this forum.

unsatisfied linking problem when using prebuilt library

Postby aashishvijayvirgiya » Mon Jun 13, 2011 12:51 pm

i m trying to make a basic android ndk application which use the
function from pribuilt library.
my android.mk is

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := addition
NDK_MODULE_PATH := $(LOCAL_PATH)
LOCAL_SRC_FILES := libaddition.so
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := Try1
### Add all source file names to be included in lib separated by a
whitespace
LOCAL_SRC_FILES := Try1.c
LOCAL_SHARED_LIBRARY := addition
include $(BUILD_SHARED_LIBRARY)
i have these file in jni folder
add.h, libaddition.so, Android.mk, com.corpus.Try1.Hellojni.h, Try1.c
and two files under src/<package Name>/
-- Try1.java, Hellojni.java
when i build the project it shows the error of linking of function
"add" which is defined in addition.c
and also declared in header file add.h but it shows the error . please
try to help
aashishvijayvirgiya
Freshman
Freshman
 
Posts: 8
Joined: Tue May 31, 2011 8:30 am

Top

Return to NDK Problems

Who is online

Users browsing this forum: No registered users and 3 guests