#include directive: relative to where?

前端 未结 6 1684
小鲜肉
小鲜肉 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:33

    for GCC version <= 3.0, the angle-bracket form does not generate a dependency between the included file and the including one. So if you want that your makefile automatically generates dependencies, you must use the quoted form for the files that should be included in the dependency tree.

提交回复
热议问题