Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to link boost with Xcode

I've upgraded my OS to El Capitan. I've used Macports to install Boost. All tutorials I've seen use this folder /usr/local/include to include the header files. In my case, I can't see this folder listed in my system unless this folder is hidden. I have no idea where the libraries installed via macports. Any suggestions?

like image 300
CroCo Avatar asked Oct 18 '25 13:10

CroCo


1 Answers

Macports usually installs in /opt/local. Click on the project (1) and Build Settings (2) and point to headers with /opt/local/include (3).

enter image description here

And if you need to link to a library add /opt/local/lib and add required libraries via Build Phases.

enter image description here

like image 99
kometen Avatar answered Oct 21 '25 02:10

kometen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!