加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

C:#include文件搜索?

发布时间:2020-12-16 09:25:32 所属栏目:百科 来源:网络整理
导读: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的标头.明确?

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读