#include directive: relative to where?

rlbond picture rlbond · Mar 14, 2009 · Viewed 31.3k times · Source

I have looked in The C++ Programming Language to try to find the answer to this. When I #include "my_dir/my_header.hpp" in a header, where does it look for this file? Is it relative to the header, relative to the source file that included it, or something else?

Answer