[How To] Use Boost in Xcode

Using Boost C++ Libraries (https://www.boost.org/) is relatively easier than setting up Cryptopp. [Ref.: https://com.puter.tips/2021/02/how-to-use-cryptopp-in-xcode.html]

Step-1: Install boost libraries
$ brew install boost
Step-2: Link boost in Build Settings
  • Navigate to Linking >> Other Linker Flags
  • Add following flags as per your requirement
    • -lboost_chrono
    • -lboost_system
    • -lboost_timer
    • -lboost_regex

This guide sets up the Boost C++ libraries in an Xcode project, which is simpler than wiring up some other libraries. After installing Boost with Homebrew, you add the linker flags so the project finds it.

Boost is a large, widely used collection of peer reviewed C++ libraries, many of which later influenced the standard library. Getting the link settings right once lets you use any of them.

Comments

Popular posts from this blog

[Solved] Error: No such keg: /usr/local/Cellar/gcc

[How To] Unfollow Non-followers on Instagram