当前位置 : 主页 > 编程语言 > c++ >

C:#include文件搜索?

来源:互联网 收集:自由互联 发布时间:2021-06-23
This MSDN document报价: look for include files in the same directory of the file that contains the #include statement, and then in the directories of any files that include (#include) that file 等等,什么? 这究竟意味着什么(大
This MSDN document报价:

look for include files in the same
directory of the file that contains
the #include statement, and then in
the directories of any files that
include (#include) that file

等等,什么?
这究竟意味着什么(大胆的东西)?

这可能意味着如果foo / bar / baz.c包含../bog/bog.h,后者包含

#include "fix.h"

它会找到foo / bar / fix.h.换句话说,它查找包含C文件的目录,该文件包含包含include的标头.明确?

网友评论