#include directive: relative to where?

前端 未结 6 1620
小鲜肉
小鲜肉 2021-02-05 00:05

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 f

6条回答
  •  滥情空心
    2021-02-05 00:47

    It is relative to both the current source file and to any search paths given (-I for gcc).

提交回复
热议问题