Linux中出现/usr/bin/ld: cannot find -lxxx报错该解决方法
在linux环境编译应用程式或lib的source code时常常会出现如下的错误讯息:
代码如下:
/usr/bin/ld: cannot find -lxxx
这些讯息会随着编译不同类型的source code 而有不同的结果出来如:
代码如下:
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find -lltdl
/usr/bin/ld: cannot find -lXtst
其中xxx即表示函式库文件名称,如上例的:libc.so、libltdl...