Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Boost with Xcode4

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

like image 410
pingu Avatar asked Mar 13 '11 10:03

pingu


3 Answers

Managed it with this:

Link binaries with libraries

and this:

enter image description here

like image 199
pingu Avatar answered Oct 21 '22 10:10

pingu


I would just like to add on to the previous post:

After running

$ sudo port install boost (this can be done once you have macports installed).

libboost_system.dylib and libboost_filesystem.dylib could be found in /opt/local/lib/

boost_1_46_1.tar.bz2 will be located in /opt/local/var/macports/distfiles/boost/ Unarchive it, then copy and paste the folder named "Boost" to /usr/local/include/

like image 30
Raunak Avatar answered Oct 21 '22 10:10

Raunak


  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
like image 2
abnvp Avatar answered Oct 21 '22 09:10

abnvp