Including header files in different location

How to include additional header files using CC command?

Right now I was using as CC -g filename -I. -I"dir path"

But still i was getting errors during linking as could not open include file.

Thanks in advance
Last edited on
closed account (Dy7SLyTq)
could you post your code? dont forget code tags
That ought to be enough, if done correctly.

What is "dir path"? Does it exist from the build directory (which may be different from your current directory if you're not running it directly).
Topic archived. No new replies allowed.