原文:Linux下编译C/C++时,出现/usr/bin/ld: cannot find -l*** 错误的处理

直接在命令行输入: locate lib 显示出文件所在路径, 然后在命令行: ln s 文件路径 文件名 usr lib 文件名 应该解决了。 例如: gcc first.c lclntsh usr bin ld: cannot find lclntshcollect : ld 返回 locate libclntsh u app oracle product . . dbhome invento ...

2015-07-02 00:17 0 9787 推荐指数:

查看详情

编译的时候出现 usr/bin/ld: cannot find -lxxx 的错误

比如错误为: usr/bin/ld: cannot find -labc 首先要明白的是 labc 代表的是 libabc.so 明白了这个之后,我们就知道了问题是:在编译的过程中,需要 libabc.so 库 而系统又找不到这个库 解决方法是,手动找到这个库。 你可能会发现,系统 ...

Wed Feb 13 04:58:00 CST 2019 0 7175
make源文件出现 /usr/bin/ld: cannot find -lstdc++ 错误

解决CentOS 7 中,make源文件出现 /usr/bin/ld: cannot find -lstdc++ 错误 在CentOS 7中,使用static方法编译,需要安装static version of glibc-static libstdc++-static。使用如下命令安装 ...

Thu Dec 05 01:41:00 CST 2019 0 578
解决g++编译出现/usr/bin/ld: cannot find -lc

以下过程是因为本机安装Emacs之前所有的编译工程都是OK的,但是安装了Emacs之后g++就编译不了了。 解决/usr/bin/ld: cannot find -lc过程 1. 在本机系统中搜索libc.so 2. 搜索 ...

Sat Feb 04 22:57:00 CST 2012 0 21638
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM