我想在我的实现中使用其他一些项目库。该项目有一个 /common 文件夹,我想包含其中的库。在 LDLIBSOPTIONS 下的 makefile 中,我包含了 /common 文件夹所在的路径,如下所示:
LDLIBSOPTIONS=-lpci -lpthread -I../../../OtherProj/Libs/common/
然后我包含一个 .h 文件,例如:
#include <ExampleLib.h>
但是我仍然得到
fatal error: XXX.h: No such file or directory
我究竟做错了什么?谢谢。