您的位置:首页 > 移动开发

Using 'dlopen' in statically linked applications requires at runtime the shared libraries

2018-03-08 21:22 726 查看
编译动态库时,出现以下问题
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux
相关文章推荐