I want to compile an Xcode (version 4.5.2.) project using Boost-library. I have successfully installed Boost on my mac and I got the following message:
The following directory should be added to compiler include paths:
XXX/boost_1_52_0
The following directory should be added to linker library paths:
XXX/boost_1_52_0/stage/lib
How do I add a compiler include path and a linker library path in Xcode? Many thanks.
To include Boost libraries on Xcode project : Select Xcode project > Build Setting. Add /usr/local/boost_1_60_0/include/ to the Header Search Paths. Add /usr/local/boost_1_60_0/lib/ to the Library Search Paths.
Go to Project properties → C/C++ → General → Additional Include Directories, and add a path to the boost library root (in my case C:\Program Files (x86)\Boost_1_53 ). Include a . hpp file in your sources, like #include <boost/lexical_cast/lexical_cast_old.
6.1 Link From Within the Visual Studio IDEIn Configuration Properties > Linker > Additional Library Directories, enter the path to the Boost binaries, e.g. C:\Program Files\boost\boost_1_55_0\lib\. From the Build menu, select Build Solution.
To participate in development, you need to subscribe to the Boost developers' list. Once you've done that, some paths to contribution are: Submit patches for new features or bug fixes. Pick any ticket from our bug tracking system on GitHub and get started.
I should mention the following is for Xcode 4.5.2. You should likely mention which version of Xcode you're using in your question.
And in case you didn't see it, you can add addition library search paths here as well, same area, subsection Library Search Paths
Updated for Xcode 5.0.2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With