In case anyone else stumbles upon this via google:
There are three steps involved:
Right click on the project and choose
Add Frameworks and Libraries
, followed byOther
, and browse for all of the dylibs. Since I installed boost via brew, the dylibs were located under/usr/local/Cellar/boost/1.53.0/lib/
. Make sure that you select all of them, so that under the new Frameworks folder in your navigation window, a list of all of the boost libraries appear.
Right click on the project and choose
Project Settings
. Scroll toSearch Paths
and add the path to your boost include directory underHeader Search Paths
. For me it was located under/usr/local/Cellar/boost/1.53.0/include
. Make sure that Recursive is unchecked, or you will get compile errors if you are using std!!!Proceed to add the boost lib dir (that you browsed to in step 1) under
Library Search Paths
. After steps 2 & 3, your search paths may look something like:
Thats it! You are now ready to use boost headers like so:
#include <boost/lexical_cast.hpp>
Just make sure to build in 64-bit mode, since that's what the boost libraries are compiled as (might be different for the macports build).