<的libxml2 / tree.h中>在我的Xcode项目中找不到 [英] <libxml2/tree.h> not found in my Xcode project

查看:100
本文介绍了<的libxml2 / tree.h中>在我的Xcode项目中找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,在我的Xcode项目中,我包含 libxml2.dylib 框架。我仍然收到错误:

Hi in my Xcode project I included libxml2.dylib framework. I am still getting a error:


找不到libxml2 / tree.h。

libxml2/tree.h not found.

如何解决此问题?

我没有给出任何搜索标题路径。我正在使用 Xcode 4.2

I didn't give any search header paths. I am using Xcode 4.2

推荐答案

在我自己的项目中使用libxml2 ,我修改了Header Search路径,明确告诉编译器在哪里找到头文件:

In my own projects that use libxml2, I modified the Header Search paths to explicitly tell the compiler where to find the header files:

$(SDKROOT)可以看出有点,它实际上内置于随Xcode安装的SDK中。

As you can tell from the "$(SDKROOT)" bit, it's actually built into the SDK that gets installed with Xcode.

这篇关于<的libxml2 / tree.h中>在我的Xcode项目中找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆