Seems like something you could figure out. Create a header file that compiles and one that doesn't. By moving them around to different directories and seeing which one the compiler chooses, you should be able to get an idea of the order it's looking in the directories.