{"id":1187,"date":"2014-02-13T16:02:43","date_gmt":"2014-02-13T08:02:43","guid":{"rendered":"http:\/\/www.dogeye.net\/?p=1187"},"modified":"2014-02-13T16:02:43","modified_gmt":"2014-02-13T08:02:43","slug":"%e6%80%8e%e4%b9%88%e7%9f%a5%e9%81%93gcc%e6%90%9c%e7%b4%a2%e5%a4%b4%e6%96%87%e4%bb%b6%e7%9a%84%e8%b7%af%e5%be%84","status":"publish","type":"post","link":"https:\/\/ykyi.net\/?p=1187","title":{"rendered":"\u600e\u4e48\u77e5\u9053gcc\u641c\u7d22\u5934\u6587\u4ef6\u7684\u8def\u5f84"},"content":{"rendered":"<p><font size=\"3\">\u6bcf\u4e2aC\/C++\u7a0b\u5e8f\u5458\u90fd\u77e5\u9053\uff0c\u5bf9\u4e8e#include directive\uff0c\u4e00\u822c\uff0c\u4ee5\u53cc\u5f15\u53f7\u5f15\u7528\u7684\u5934\u6587\u4ef6\u662f\u7a0b\u5e8f\u53f7\u81ea\u5b9a\u4e49\u7684\u5934\u6587\u4ef6\u3002\u800c\u7528\u5c16\u62ec\u53f7\u5f15\u7528\u7684\u5934\u6587\u4ef6\u662f\u7cfb\u7edf\u7684\u5934\u6587\u4ef6\u6216\u5176\u5b83\u5e93\u6587\u4ef6\u3002<\/font><\/p>\n<p><font size=\"3\">\u66f4\u8be6\u7ec6\u7684\uff0c\u7f16\u8bd1\u5668\u5148\u5728\u5f53\u524d\u76ee\u5f55\u627e\u7528\u53cc\u5f15\u53f7&quot;&quot;\u5f15\u7528\u7684\u5934\u6587\u4ef6\uff0c\u5982\u679c\u627e\u4e0d\u5230\u518d\u5230\u7cfb\u7edf\u76ee\u5f55\u627e\u8fd9\u4e2a\u5934\u6587\u4ef6\u3002\u800c\u5bf9\u4e8e\u5c16\u62ec\u53f7\u5f15\u7528\u7684\u5934\u6587\u4ef6\uff0c\u7f16\u8bd1\u5668\u5c31\u53ea\u5728\u7cfb\u7edf\u6587\u4ef6\u4e2d\u641c\u7d22\u4e86\u3002<\/font><\/p>\n<p><font size=\"3\">\u90a3\u4e48\uff0c\u5230\u5e95\u662f\u5728\u54ea\u4e9b\u76ee\u5f55\u4e2d\u641c\u7d22\u5934\u6587\u4ef6\u5462\uff1f<\/font><\/p>\n<p><font size=\"3\">\u53ef\u4ee5\u7528cpp\u67e5\u770b\uff0c\u5982\u4e0b\uff1a<\/font><\/p>\n<pre class=\"brush:other\">root@vicarious:\/home\/kamus\/projs\/horoscope\/boost# cpp -v\nUsing built-in specs.\nCOLLECT_GCC=cpp\nTarget: x86_64-linux-gnu\nThread model: posix\ngcc version 4.7.2 (Debian 4.7.2-5)\nCOLLECT_GCC_OPTIONS=&#39;-E&#39; &#39;-v&#39; &#39;-mtune=generic&#39; &#39;-march=x86-64&#39;\n \/usr\/lib\/gcc\/x86_64-linux-gnu\/4.7\/cc1 -E -quiet -v -imultiarch x86_64-linux-gnu - -mtune=generic -march=x86-64\nignoring nonexistent directory &quot;\/usr\/local\/include\/x86_64-linux-gnu&quot;\nignoring nonexistent directory &quot;\/usr\/lib\/gcc\/x86_64-linux-gnu\/4.7\/..\/..\/..\/..\/x86_64-linux-gnu\/include&quot;\n#include &quot;...&quot; search starts here:\n#include &lt;...&gt; search starts here:\n \/usr\/lib\/gcc\/x86_64-linux-gnu\/4.7\/include\n \/usr\/local\/include\n \/usr\/lib\/gcc\/x86_64-linux-gnu\/4.7\/include-fixed\n \/usr\/include\/x86_64-linux-gnu\n \/usr\/include\nEnd of search list.<\/pre>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size:16px;\">\u4e00\u822c\u7f16\u5199makefile\u65f6\u7ed9gcc\u6307\u5b9a -I\u9009\u9879\uff0c-I\u7684\u53c2\u6570\u4ee3\u8868\u7684\u76ee\u5f55\u662f\u641c\u7d22\u7cfb\u7edf\u5934\u6587\u4ef6\u65f6\u4f7f\u7528\u7684\u76ee\u5f55\u3002\u53ef\u4ee5\u8bd5\u8bd5# cpp -I\/tmp -v&nbsp;<\/span><\/p>\n<p><span style=\"font-size:16px;\">\/tmp\u76ee\u5f55\u4f1a\u88ab\u6dfb\u52a0\u4e3a\u641c\u7d22\u7cfb\u7edf\u5934\u6587\u4ef6\u65f6\u7684\u7b2c\u4e00\u4e2a\u76ee\u5f55\u3002<\/span><\/p>\n<p><span style=\"font-size:16px;\">\u5982\u679c\u60f3\u8981\u6dfb\u52a0\u641c\u7d22\u53cc\u5f15\u53f7&quot;&quot;\u5f15\u7528\u7684\u5934\u6587\u4ef6\u4f7f\u7528\u7684\u76ee\u5f55\u5462\uff0c\u7528 <strong>-iquote<\/strong> \u9009\u9879\u6307\u5b9a\u66f4\u591a\u7684\u76ee\u5f55\u3002<\/span><\/p>\n<p>copyright ykyi.net<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6bcf\u4e2aC\/C++\u7a0b\u5e8f\u5458\u90fd\u77e5\u9053\uff0c\u5bf9\u4e8e#include directive\uff0c\u4e00\u822c\uff0c\u4ee5\u53cc\u5f15\u53f7\u5f15\u7528\u7684\u5934\u6587\u4ef6\u662f\u7a0b\u5e8f\u53f7\u81ea\u5b9a\u4e49\u7684\u5934\u6587\u4ef6\u3002\u800c\u7528\u5c16\u62ec\u53f7\u5f15\u7528\u7684\u5934\u6587\u4ef6\u662f\u7cfb\u7edf\u7684\u5934\u6587\u4ef6\u6216\u5176\u5b83\u5e93\u6587\u4ef6\u3002 \u66f4\u8be6\u7ec6\u7684\uff0c\u7f16\u8bd1\u5668\u5148\u5728\u5f53\u524d\u76ee\u5f55\u627e\u7528\u53cc\u5f15\u53f7&quot;&quot;\u5f15\u7528\u7684\u5934\u6587\u4ef6\uff0c\u5982\u679c\u627e\u4e0d\u5230\u518d\u5230\u7cfb\u7edf\u76ee\u5f55\u627e\u8fd9\u4e2a\u5934\u6587\u4ef6\u3002\u800c\u5bf9\u4e8e\u5c16\u62ec\u53f7\u5f15\u7528\u7684\u5934\u6587\u4ef6\uff0c\u7f16\u8bd1\u5668\u5c31\u53ea\u5728\u7cfb\u7edf\u6587\u4ef6\u4e2d\u641c\u7d22\u4e86\u3002 \u90a3\u4e48\uff0c\u5230\u5e95\u662f\u5728\u54ea\u4e9b\u76ee\u5f55\u4e2d\u641c\u7d22\u5934\u6587\u4ef6\u5462\uff1f \u53ef\u4ee5\u7528cpp\u67e5\u770b\uff0c\u5982\u4e0b\uff1a root@vicarious:\/home\/kamus\/projs\/horoscope\/boost# cpp -v Using built-in specs. COLLECT_GCC=cpp Target: x86_64-linux-gnu Thread model: posix gcc version 4.7.2 (Debian 4.7.2-5) COLLECT_GCC_OPTIONS=&#39;-E&#39; &#39;-v&#39; &#39;-mtune=generic&#39; &#39;-march=x86-64&#39; \/usr\/lib\/gcc\/x86_64-linux-gnu\/4.7\/cc1 -E -quiet -v -imultiarch x86_64-linux-gnu &#8211; -mtune=generic -march=x86-64 ignoring nonexistent directory &quot;\/usr\/local\/include\/x86_64-linux-gnu&quot; ignoring nonexistent directory &quot;\/usr\/lib\/gcc\/x86_64-linux-gnu\/4.7\/..\/..\/..\/..\/x86_64-linux-gnu\/include&quot; #include &quot;&#8230;&quot; search starts here: #include &lt;&#8230;&gt; search starts here: \/usr\/lib\/gcc\/x86_64-linux-gnu\/4.7\/include \/usr\/local\/include &hellip; <a href=\"https:\/\/ykyi.net\/?p=1187\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;\u600e\u4e48\u77e5\u9053gcc\u641c\u7d22\u5934\u6587\u4ef6\u7684\u8def\u5f84&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,7],"tags":[27],"class_list":["post-1187","post","type-post","status-publish","format-standard","hentry","category-tech_articles","category-unix_linux","tag-debug"],"_links":{"self":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts\/1187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1187"}],"version-history":[{"count":0,"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts\/1187\/revisions"}],"wp:attachment":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}