简体   繁体   English

链接libxml时出错

[英]Error linking libxml

I want to use GData API in my project for iOS I've followed official notes on how to add GData to project Static library was built successfully, I've added references to it and headers folder Than I put #import "GData.h into one of my source files and get following error while building project: libxml/tree.h : no such file or directory 我想在我的iOS项目中使用GData API。我已遵循有关如何将GData添加到项目中的官方说明,静态库已成功构建,已经添加了对它的引用和标头文件夹,比我将#import "GData.h放入我的源文件之一,并且在构建项目时得到以下错误: libxml/tree.h : no such file or directory

In build settings - other linker flags I've specified -lxml2 (both for project and target) In header search paths - /usr/include/libxml2 (no misspellings, I've checked), both for project and target. 在构建设置中-我已经为项目和目标在头搜索路径中指定了-lxml2(对于项目和目标均指定了其他链接器标记)-/ usr / include / libxml2(我已经检查了拼写,没有拼写错误)。 "${SDKROOT}/usr/include/libxml2" also didn't help “ $ {SDKROOT} / usr / include / libxml2”也没有帮助

Still get the same errors 仍然出现相同的错误

Mac OS 10.6.6, Xcode 4.0 Build 4A304a, iOS SDK 4.3 Mac OS 10.6.6,Xcode 4.0 Build 4A304a,iOS SDK 4.3

尝试以下操作:项目目标->构建设置->标头搜索路径,调试模式,$ {BUILT_PRODUCTS_DIR} /标头

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM