eclipse - Android.mk: accessing a function in a shared library from another shared library -


i have first shared library:

local_path := $(call my-dir) include $(clear_vars) local_module := 1 local_src_files := one.cpp include $(build_shared_library) 

i want call function in first shared library second shared library:

local_path := $(call my-dir) include $(clear_vars) local_module    := 2 local_src_files := two.c local_shared_libraries := 1 local_ldlibs := -llog -landroid -l/path/obj/local/armeabi/ -lone include $(build_shared_library) 

in first shared library, have:

nm -d /path/obj/local/armeabi/libone.so | grep \ t 000046cd t _z13setinputframepcii 

i'm calling in second shared library same function it's defined in first library:

void setinputframe(char* data, int iwidth, int iheight); 

during linkage of second library, eclipse says can't find function. idea why?

for other reasons, need have first library shared (non static) library.

i'm mixing c++ , c. adding extern "c" fixes problem.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -