本文介绍了未找到Delphi IOS链接器错误库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在Delphi IOS中使用需要库的第三方框架。为了让Delphi链接它,我输入了以下语句:
I'm trying to use a third party framework, that needs a library, in Delphi IOS. To get Delphi to link it in i've entered the following statement:
procedure StubProc1; cdecl; external 'AerServSDK.a' dependency 'libxml2.2';
当我构建它时,我收到以下错误:
When i build it i get the following error:
[DCC Error] E2597 ld: library not found for -llibxml2.2
该库位于usr \lib目录中,我尝试的whitch库并不重要。显然有些搜索路径需要更新,但在哪里以及如何?
The library is in the usr\lib directory, and it doesn't matter whitch library i try. Apparently some searchpath needs to be updated, but where and how??
推荐答案
解决方案是,省略库名称的lib部分。所以它是:
The solution is, to omit the "lib" part of the library name. So it's:
procedure StubProc1; cdecl; external 'AerServSDK.a' dependency 'xml2.2';
这篇关于未找到Delphi IOS链接器错误库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!