that's exactly what I mean, the name of "ret_mul" has been mangled by the
C++ compiler so the dynamic link cannot work properly.
you should define "ret_mul" as extern "C" in your C++ code, since it's the
only way for the C code in NativeAdd to call the function.
you also probably forgot to disable
Definition of ret_mul is in libNativeC.so and not in libNativeCpp.so.
libNativeCpp.so has ret_mul_cpp defined and it is there in libNativeCpp.so
with its name changed to '_Z11*ret_mul_cpp*ii' .
By the way, I have not even called that function so linker will not try to
resolve it and thus it should
you do realize that your NativeCpp.so doesn't have a "ret_mul" symbol at
all, hence the link error ?
On Fri, May 30, 2008 at 11:31 AM, Ashutosh Malviya <[EMAIL PROTECTED]>
wrote:
> Hello All,
>
> I am trying to call an API in a C++ library libNativeCpp.so and Android
> does not load it. The erro
3 matches
Mail list logo