Re: [問題] 有關於 header 在 linux 的幾個問題
: 怎麼知道在 C 語言是 include 哪個檔案??
do preprocessing: gcc -E test.c
: 有沒有方法可以知道 compiler 在 compile & link 的時候,
: link header 所參照的路徑呢?
: 或是其他方法嗎?
show cpp default search path:
echo | gcc -E -Wp,-v -
to append path, use option -I.
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 39.9.33.100
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1506838535.A.B96.html
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):