/usr/bin/ld: cannot find -lxx
来源:互联网 发布:淘宝 新店 低价冲信誉 编辑:程序博客网 时间:2024/04/26 05:14
执行链接是,如果提示:
/usr/bin/ld: cannot find -lxx,一般是链接时找不到对应的库
首先需要确认系统上安装了该库
root下面运行 find /usr/lib -name *xx*
比如/usr/bin/ld: cannot find -lm 这个是缺少数学库,去找下有没有这个库
find /usr/lib -name *libm*
如果系统上安装了该库,但位置不在/usr/lib 下,比如:
/usr/lib/x86_64-redhat-linux5E/lib64/libm.so
/usr/lib/x86_64-redhat-linux5E/lib64/libm.a
然后建立一个软连接即可:
ln -sv /usr/lib/x86_64-redhat-linux5E/lib64/libm.so /usr/lib/libm.so
再次编译就ok了。
/usr/bin/ld: cannot find -lc是缺少libc.a libc.so
- /usr/bin/ld: cannot find -lxx
- 解决找不到/usr/bin/ld: cannot find -lXX的问题
- 解决找不到/usr/bin/ld: cannot find -lXX的问题
- 库架构不一致引起/usr/bin/ld: cannot find -lxx问题
- /usr/lib/ld: cannot find lxx的解决办法
- /usr/bin/ld: /usr/bin/ld: cannot find -lc
- /usr/bin/ld: cannot find -lstdc++ /usr/bin/ld: cannot find -lm /usr/bin/ld: cannot find -lc
- /usr/bin/ld: cannot find -lstdc++ /usr/bin/ld: cannot find -lm /usr/bin/ld: cannot find -lc
- 解决:/usr/bin/ld: cannot find -lltdl
- /usr/bin/ld: cannot find -lltdl
- usr/bin/ld: cannot find 错误解决方法
- usr/bin/ld: cannot find 错误解决方法
- /usr/bin/ld: cannot find -lXt
- /usr/bin/ld: cannot find -lqte 解决方案 !
- 解决/usr/bin/ld: cannot find XXX
- linux /usr/bin/ld cannot find 解决
- /usr/bin/ld: cannot find -l*
- /usr/bin/ld: cannot find -lgcc_s
- 算法推荐
- ANSI,ASCII,Unicode的区别与联系
- 分布式索引文件内容
- tar.gz文件安装方法
- iPhone开发笔记二
- /usr/bin/ld: cannot find -lxx
- MD /MDd /ML /MT/MTd
- unityios开发--触摸屏手势控制镜头旋转与缩放
- TCP拥塞控制及其标准算法
- jsp标准标签
- 云计算
- msvcrtd.lib和libcmtd.lib冲突 (转)
- 溢出OF和进位CF区别
- VC HID