Xcode添加头文件路径和链接库文件的方法跟Windows下的VisualStudio差不多,但感觉比Xcode麻烦好多!但谁叫它功能那么强大,不得不用呢!下面就说下怎么配!

1.打开Xcode的某一个工程
2.打开如下界面

Xcode添加头文件路径和链接库文件

3.添加头文件依次找到
Header Search Paths: 添加#include <>的路径
User Header Search Paths: 添加#include “”路径

4.添加库文件
Library Search Paths: 添加库所在目录
Other Linker Flags: 比如要链接的库是libboost_regex.a,那么此处应该添加-lboost_regex即可。

完。

相关文章:

  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案