简体   繁体   中英

explaining header files path in c

I have a headerpath in ac program that reads

#include <lib/a.h>
#include <lib/b.h>

How do I specify where 'lib' should be in my makefile? It gives me a compile error saying lib/ah is not found. But I know the system path where ah is located. How do I tell my Makefile where to go find lib?

Thanks, Vik.

将参数-I/path/to/include到编译标志(例如CFLAGSCXXFLAGS ),在该编译标志中,路径指向lib目录的目录。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM