c++ - 在 xcode 中链接 boost 库

标签 c++ boost osx-mountain-lion xcode4.5

我在这个路径中有 boost 1_46_1:/Users/ramy/Documents/C++。
在 C++ xcode 项目中,我修改了用户 header 搜索路径,并添加了这个目录:/Users/ramy/Documents/C++/boost_1_46_1。
我正在尝试包含 boost/regex.hpp 。该文件在那里:如果我转到/Users/ramy/Documents/C++/boost_1_46_1/boost 那里有 regex.hpp,但在尝试构建项目时出现错误: boost/regex.hpp: 找不到文件。

最佳答案

嗯...你知道 Regex Boost 不是只有标题吗?

您可能必须构建 Boost 并链接到库 (linkage options)

关于c++ - 在 xcode 中链接 boost 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13309519/

相关文章:

c++ - 二维数组的自动大小扣除

c++ - FastCGI 服务器 C++

c++ - 返回一个 unique_ptr<T> 。概念澄清

ruby-on-rails - 无法在 Mountain Lion 上安装 pg gem

objective-c - cocoa +自动化: service to generate text files not working

c++ - boost::interprocess - allocate_aligned 在共享内存中?

c++ - 定义具有不同签名的函数

c++ - 生成 2 位长的随机 UUID

c++ - 拥有字符串映射如何将其与给定字符串进行比较

java - visualvm 在 mac 0S10.8 上挂起