Xcode is not using 'Header Search Path' to find my header files

孤人 提交于 2020-01-02 19:28:29

问题


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>

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?

Thanks


回答1:


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

Header Search Paths for #include <...>.

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>

when we directly import class name form any lib then User Header Search Paths need to be #import "class.h"



来源:https://stackoverflow.com/questions/16431341/xcode-is-not-using-header-search-path-to-find-my-header-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!