Quote:Original post by CoffeeMug
Well, adding many compiler directories also isn't a very good solution...
Some IDEs+compilers like CodeWarrior automatically do this. Which is inappropriate, IMO.
I ran into problems where I had files with the same name in different project subdirectories: 2 "common.h" files. CodeWarrior was always including the wrong one because it searches the project paths in a certain order, and includes the one that comes first.
So generally, I agree with this point
Quote:Does GCC support precompiled headers?
As far as I know, yes. You'll definitely find more details on the gcc website.
Quote:How do you handle this situation?
I usually use relative pathing, e.g. "graphics/terrain/terrain.h"
It's not that bad - it forces you to think your directory structure before doing anything, which is good for things like CVS anyway.