include查找文件路径

使用<>括号

  • 先在Xcode的编译环境找。路径如下:

  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include

  说明:contents文件夹要选中Xcode,右击鼠标,选择显示包内容才会显示。

  • 上面找不到时,再到mac系统编译环境找。路径如下:

  /usr/include

  说明:1 想要找到该路径首先需要将系统保护文件显示出来(在终端输入defaults write com.apple.finder AppleShowAllFiles -bool true)

    2 然后强制退出finder,再重新打开  

    3 然后在工具栏选前往》电脑》macintosh HD,然后再找usr文件夹

    4 有时候会找不到include文件夹,此时你需要安装一个软件(在终端输入 xcode-select —install)

 

使用 “”双引号

  先在项目当前文件下找,找不到再按照<>括号的路径下找

posted @ 2015-12-28 21:53  爱上咖啡的唐  阅读(700)  评论(0编辑  收藏  举报