Build Boost on Mac with Xcode

前端 未结 7 518
长发绾君心
长发绾君心 2020-12-05 11:09

I\'ve recently got acquainted with Boost library and I\'d like to use it in my Xcode project. But sadly there is no HowTo or FAQ on how to do it :(

What\'s the seque

7条回答
  •  难免孤独
    2020-12-05 11:52

    The easiest way I've found to do it is to install MacPorts, then you can install/build Boost via a single command:

    sudo port install boost
    

    Plus you get similar access to other open source software. The only downside I've found is that, like any other package management system, they are not always up to date with the latest version.

    If you prefer Homebrew as your package manager, the command is:

    brew install boost
    

提交回复
热议问题