Skip to content
Related Articles
Get the best out of our app
Open App

Related Articles

How to Install C++ Libraries on MacOS?

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

C++ is a general-purpose object-oriented programming(OOP) language that was developed as an enhancement of the C language and that’s why the basic syntax and code structure of both C and C++ are the same. C++ is a crucial and compiled language. C++ is a middle-level language used in developing drivers, kernels, games, GUI, desktop apps, etc.

Advantages of using C++ 

  • Simple: C++ is a simple programming language because of its easy-to-remember syntax and STL(Standard Template Library)
  • Mid-level language: It is a mid-level difficulty language as we can do both systems programming (drivers, kernels, networking, etc.) and can build user applications such as Media Players, Photoshop, Game Engines, etc.
  • Object-Oriented: Object-Oriented support helps C++ to make maintainable programs i.e. Large-scale applications can be built. Code becomes difficult to maintain as code size grows.
  • Compiled Language: C++ is a compiled language, granting its speed and that’s the reason why c++ is a preferred language among competitive programmers.
  • C++ STL: C++ has rich library support as well 3rd party libraries for fast and immediate development.

Make sure Homebrew is installed on your macOS. If Homebrew is not installed on your device then refer to How to install homebrew on macOS.

Steps to Install C++ Libraries on MacOS

Step 1: Open the terminal in your macOS.



Step 2: Type the command “brew install boost.” and enter.

brew install boost.



Step 3: Boost is successfully installed on your device.



Check Version of Boost Installed on Device

Step 1: Open the terminal in your MacOS and type the command “boost –version” and enter.

boost –version



The output on the terminal will show the version of the boost installed on your device.

My Personal Notes arrow_drop_up
Last Updated : 23 Jan, 2023
Like Article
Save Article
Similar Reads
Related Tutorials