首页 > 代码库 > NDK编译库运行时报dlopen failed: cannot locate symbol "__exidx_end" 解决办法

NDK编译库运行时报dlopen failed: cannot locate symbol "__exidx_end" 解决办法

当用NDK编译的库在运行加载时报如下错:

dlopen("/data/data/xxx.xxx.xxx/lib/libxxx.so") failed: dlopen failed: cannot locate symbol "__exidx_end" referenced by "libxxx.so"...

解决办法如下:

在你报错的库libxxx.so的编译脚本Android.mk请加上:LOCAL_LDFLAGS += -fuse-ld=bfd

NDK编译库运行时报dlopen failed: cannot locate symbol "__exidx_end" 解决办法