c++ - How to use Boost headers with Jetbrains Appcode -
i have boost libraries installed on macbook via macports , wondering how configure appcode recognize headers. tried right clicking on project -> add frameworks , libraries -> other... ->
browse /opt/local/include -> choose
doesn't seem add boost list.
has gotten boost work appcode?
in case else stumbles upon via google:
there 3 steps involved:
right click on project , choose
add frameworks , libraries
, followedother
, , browse of dylibs. since installed boost via brew, dylibs located under/usr/local/cellar/boost/1.53.0/lib/
. make sure select of them, under new frameworks folder in navigation window, list of of boost libraries appear.
right click on project , choose
project settings
. scrollsearch paths
, add path boost include directory underheader search paths
. me located under/usr/local/cellar/boost/1.53.0/include
. make sure recursive unchecked, or compile errors if using std!!!proceed add boost lib dir (that browsed in step 1) under
library search paths
. after steps 2 & 3, search paths may like:
thats it! ready use boost headers so:
#include <boost/lexical_cast.hpp>
just make sure build in 64-bit mode, since that's boost libraries compiled (might different macports build).
Comments
Post a Comment