Skip to content
May 31, 2012 / windperson

Xcode設定編譯器去找header檔案的幾個眉眉角角

  1. 專案build設定裡『Always Search User Paths』設成YES,才會編譯時優先搜尋自己在header search path裡設定的位置,然後再去找系統共通的header檔位置。
  2. 可使用編譯器變數,例如“${SOURCE_ROOT}”或寫成“${SRCROOT}”是指目前專案所在目錄,請參考官方文件
  3. 在輸入路徑內容時,打『/*』是指定編譯器去搜尋目前指定路徑的目錄,打『/**』是指定編譯器去遞迴搜尋目前指定路徑的所有子目錄。
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: