简体   繁体   English

在Xcode中链接Boost库

[英]Linking boost libraries in xcode

I have boost 1_46_1 in this path: /Users/ramy/Documents/C++ . 我在以下路径中提升了1_46_1:/ Users / ramy / Documents / C ++。
In a C++ xcode project I have modified the user header search paths, and added this directory : /Users/ramy/Documents/C++/boost_1_46_1 . 在C ++ xcode项目中,我修改了用户标头搜索路径,并添加了以下目录:/ Users / ramy / Documents / C ++ / boost_1_46_1。
I am trying to include boost/regex.hpp .The file is there: if I go to /Users/ramy/Documents/C++/boost_1_46_1/boost there is regex.hpp, but I get an error when trying to build the project: boost/regex.hpp: file not found. 我正在尝试包含boost / regex.hpp。文件在那里:如果我转到/ Users / ramy / Documents / C ++ / boost_1_46_1 / boost则是regex.hpp,但是在尝试构建项目时出现错误: boost / regex.hpp:找不到文件。

hmm... Do you know that Regex Boost is not header-only ? 嗯...您知道Regex Boost不只是标头吗?

You may have to build Boost and link to the libraries ( linkage options ) 您可能需要构建Boost并链接到库( 链接选项

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM