undefined reference to 'dlopen'

编译错误:

error: undefined reference to 'dlclose'

error: undefined reference to 'dlopen'

error: undefined reference to 'dlerror'

error: undefined reference to 'dlsym'


解决方案,在Android.mk中加入如下语句:


LOCAL_SHARED_LIBRARIES += \

libdl

LOCAL_LDLIBS += \
-lpthread \
-ldl \

你可能感兴趣的:(undefined reference to 'dlopen')