g++ header searching path

How can I add a folder and ALL ITS SUBFOLDERS to the "include searching path"? Then if myheader.h is in one of these folders, I can use "include <myheader.h>" instead of "include "path/myheader.h" ". I tried g++ -I, but with it I can only specify one folder, I don't know how to make it include all the subfolders.

I am using a library called spuc. And in its source code, it uses "include <XXX.h>" to include the header files from the library, and these header files are in different subfolders of the library root directory. How should I deal with it?
You should be able to specify multiple -I options.
Thanks! That seems to be my only choice.
Do it one time inside a Makefile so you don't need to repeat typing them again and again in different compilation times.
Topic archived. No new replies allowed.