"ld: library not found for -l...." 问题的解决

原文地址为: "ld: library not found for -l...." 问题的解决

现象:

在编译工程时,有时会遇到类似“ld: library not found for -l....”的错误提示。

原因:

通常这是由于工程在编译时找不到需要的链接库而导致的。

解决方法:

一般可以通过如下方法解决,在工程的Target中选中要执行编译的某个target,然后“get info”,打开Build设置页面,

在“Library Search Path”中添加缺失链接库的所在文件夹的路径即可。


转载请注明本文地址: "ld: library not found for -l...." 问题的解决

猜你喜欢

转载自blog.csdn.net/zhengxiuchen86/article/details/81031513