编译动态库时,出现以下问题
Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
这个是因为编译源文件时用到的dlopen函数依赖 libdl .
把编译链接放在 object前面可解决问题。
$(CC) -s -fPIC -lpthread -ldl -lm -Wl,-rpath
编译动态库时,出现以下问题
Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
这个是因为编译源文件时用到的dlopen函数依赖 libdl .
把编译链接放在 object前面可解决问题。
$(CC) -s -fPIC -lpthread -ldl -lm -Wl,-rpath