Xcode没有使用“头文件搜索路径”来找到我的头文件 [英] Xcode is not using 'Header Search Path' to find my header files

查看:669
本文介绍了Xcode没有使用“头文件搜索路径”来找到我的头文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载并编译curl。在我的/ usr / include文件夹中,我可以看到文件夹,'curl',我可以看到,我做,的确,有'/usr/include/curl/curl.h'。然而,我不能在编译时谈到XCode到那里。

I have just downloaded and compiled curl. In my /usr/include folder I can see folder, 'curl' and I can see that I do, indeed, have '/usr/include/curl/curl.h'. However I cannot talk XCode into looking there when compiling.

#import <curl/curl.h>

在我的目标的属性中,我包含了'/ usr / include'到'Header Search Paths'。

In my target's properties I have included '/usr/include' to 'Header Search Paths'. The build continues to fail stating that it cannot find 'curl/curl.h'

我没有正确添加我的搜索路径?

Am I not adding my search paths correctly?

感谢

推荐答案

用户标题搜索路径 - 搜索 #include 。

User Header Search Paths - searched for #include "..." and

的头文件搜索路径#include< ...>

当我们提供其框架工作然后它的类名称然后Header搜索路径需要定义。 #import< framework / class.h>

when we will provide its its frame work then it's class name then Header Search Paths need to be define. #import <framework/class.h>

搜索路径需要 #importclass.h

这篇关于Xcode没有使用“头文件搜索路径”来找到我的头文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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