<tfoot id='pmtMo'></tfoot>
    1. <i id='pmtMo'><tr id='pmtMo'><dt id='pmtMo'><q id='pmtMo'><span id='pmtMo'><b id='pmtMo'><form id='pmtMo'><ins id='pmtMo'></ins><ul id='pmtMo'></ul><sub id='pmtMo'></sub></form><legend id='pmtMo'></legend><bdo id='pmtMo'><pre id='pmtMo'><center id='pmtMo'></center></pre></bdo></b><th id='pmtMo'></th></span></q></dt></tr></i><div id='pmtMo'><tfoot id='pmtMo'></tfoot><dl id='pmtMo'><fieldset id='pmtMo'></fieldset></dl></div>

        <bdo id='pmtMo'></bdo><ul id='pmtMo'></ul>

      1. <small id='pmtMo'></small><noframes id='pmtMo'>

      2. <legend id='pmtMo'><style id='pmtMo'><dir id='pmtMo'><q id='pmtMo'></q></dir></style></legend>

        如何判断头文件是从哪里包含的?

        时间:2023-09-19
          <tbody id='flTbN'></tbody>

      3. <legend id='flTbN'><style id='flTbN'><dir id='flTbN'><q id='flTbN'></q></dir></style></legend>
        <i id='flTbN'><tr id='flTbN'><dt id='flTbN'><q id='flTbN'><span id='flTbN'><b id='flTbN'><form id='flTbN'><ins id='flTbN'></ins><ul id='flTbN'></ul><sub id='flTbN'></sub></form><legend id='flTbN'></legend><bdo id='flTbN'><pre id='flTbN'><center id='flTbN'></center></pre></bdo></b><th id='flTbN'></th></span></q></dt></tr></i><div id='flTbN'><tfoot id='flTbN'></tfoot><dl id='flTbN'><fieldset id='flTbN'></fieldset></dl></div>

            1. <tfoot id='flTbN'></tfoot>
                • <bdo id='flTbN'></bdo><ul id='flTbN'></ul>

                  <small id='flTbN'></small><noframes id='flTbN'>

                  本文介绍了如何判断头文件是从哪里包含的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我如何知道 g++ 在哪里能够找到包含文件?基本上如果我

                  How can I tell where g++ was able to find an include file? Basically if I

                  #include <foo.h>
                  

                  g++ 将扫描搜索路径,使用任何包含选项来添加或更改路径.但是,归根结底,有没有办法告诉我 g++ 选择编译的 foo.h 的绝对路径?如果在无数搜索路径中存在多个 foo.h,则尤其相关.

                  g++ will scan the search path, using any include options to add or alter the path. But, at the end of days, is there a way I can tell the absolute path of foo.h that g++ chose to compile? Especially relevant if there is more than one foo.h in the myriad of search paths.

                  缺少一种实现方式...有没有办法让 g++ 告诉我在包含默认值和所有包含选项后它的最终搜索路径是什么?

                  Short of a way of accomplishing that... is there a way to get g++ to tell me what its final search path is after including defaults and all include options?

                  推荐答案

                  这将给出列出包含文件绝对路径的 make 依赖项:

                  This will give make dependencies which list absolute paths of include files:

                  gcc  -M showtime.c
                  

                  如果您不希望系统包含(即#include ),请使用:

                  If you don't want the system includes (i.e. #include <something.h>) then use:

                  gcc  -MM showtime.c
                  

                  这篇关于如何判断头文件是从哪里包含的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如果我针对大小而不是速度进行优化,为什么 下一篇:为什么增强的 GCC 6 优化器会破坏实用的 C++ 代码

                  相关文章

                  最新文章

                • <legend id='UdH9i'><style id='UdH9i'><dir id='UdH9i'><q id='UdH9i'></q></dir></style></legend>
                • <i id='UdH9i'><tr id='UdH9i'><dt id='UdH9i'><q id='UdH9i'><span id='UdH9i'><b id='UdH9i'><form id='UdH9i'><ins id='UdH9i'></ins><ul id='UdH9i'></ul><sub id='UdH9i'></sub></form><legend id='UdH9i'></legend><bdo id='UdH9i'><pre id='UdH9i'><center id='UdH9i'></center></pre></bdo></b><th id='UdH9i'></th></span></q></dt></tr></i><div id='UdH9i'><tfoot id='UdH9i'></tfoot><dl id='UdH9i'><fieldset id='UdH9i'></fieldset></dl></div>

                    <small id='UdH9i'></small><noframes id='UdH9i'>

                        <bdo id='UdH9i'></bdo><ul id='UdH9i'></ul>

                    1. <tfoot id='UdH9i'></tfoot>