[英]How do i call the header files that are inside folders in my library folder if i added search path like this $(SRCROOT)/Library?
I have a hierarchy like this in my project 我的项目中有这样的层次结构
I added a $(SRCROOT)/Library in my Header search paths so i can call my headers inside the library folder. 我在标题搜索路径中添加了$(SRCROOT)/ Library,以便可以在库文件夹中调用标题。 My question is do i still add a directory for it?
我的问题是我仍要为其添加目录吗? like if xc wants to include yh do i place #include yh or #include yfolder/yh ?
例如,如果xc要包含yh,我应该放置#include yh还是#include yfolder / yh吗?
I'd really appreciate answers, I'm still new to this and i want to add headers from ffmpeg source and it's really a lot of headers. 我非常感谢您回答,我对此还很陌生,我想从ffmpeg源添加标头,这确实有很多标头。 Thanks
谢谢
您可以使用相对路径,如下所示:#include“ ../yfolder/yh”
I can think of the following ways of #include
ing yh
in xc
. 我能想到的下列方式
#include
ING yh
在xc
。
Use path relative to $(SRCROOT)/Library
使用相对于
$(SRCROOT)/Library
路径
#include <yfolder/yh>
Use path relative to xc
使用相对于
xc
路径
#include "../yfolder/yh"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.