Reputation: 1045
I have a headerpath in a c 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/a.h is not found. But I know the system path where a.h is located. How do I tell my Makefile where to go find lib?
Thanks, Vik.
Upvotes: 0
Views: 74
Reputation: 42149
Add an argument -I/path/to/include
to the compilation flags (e.g., CFLAGS
or CXXFLAGS
) where the path leads to the parent directory of the lib
directory.
Upvotes: 5