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:

  1. right click on project , choose add frameworks , libraries, followed other, , 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.

    boost libs included

  2. right click on project , choose project settings. scroll search paths , add path boost include directory under header search paths. me located under /usr/local/cellar/boost/1.53.0/include. make sure recursive unchecked, or compile errors if using std!!!

  3. proceed add boost lib dir (that browsed in step 1) under library search paths. after steps 2 & 3, search paths may like:

    search paths

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

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -