On Jul 12, 7:15 am, death_jester <
d3ath.jes...@googlemail.com> wrote:
> undefined reference to `dladdr'
>
> In my Android.mk file I added the line
>
> LOCAL_LDLIBS :=-ldl
>
> But it still can't find this function. I even tried to give the path
> to the library with '-L'. And I checked the library file with "arm-
> linux-androideabi-readelf -s -D -W libdl.so" to check if the library
> really contains this functions. It does!
Did you check the library from the same platform version you compiled
against? Just experimenting with this, I don't see it in android-3
or android-4, but do see it from android-8.
Pass the V=1 flag to ndk-build to see what platform's lib directory it
is actually linking against.
Try it with target=android-8 in default.properties of the main app
directory.