Using Boost with Xcode4

后端 未结 3 575
天涯浪人
天涯浪人 2021-01-31 22:25

has anyone setup a C++ Xcode4 project to use Boost? what settings do I need to set in Xcode for a simple C++ console application?

Thanks

3条回答
  •  渐次进展
    2021-01-31 23:05

    1. Download the boost libraries for unix from : http://www.boost.org/
    2. Unzip it : Let's say now you have boost in "($USER_NAME)/boost_X_YY_0"
    3. Open your console Application project
    4. Click on top left node in the project directory pane (left hand side). This should be your project name
    5. Build Settings -> Search Paths -> Header Search Paths ->Add the "($USER_NAME)/boost_X_YY_0" path
    6. #include "boost/any.hpp" will work

提交回复
热议问题