Windows

Boost is a collection of libraries for the C++ programming language that provide support for tasks and structures such as event handling, string handling, memory handling, asynchronous input/output (I/O), and many more. It contains more than 140 libraries to help you increase the productivity of C++ without waiting for the next revision of the C++ standard.

In my books and on this website, some exercises and examples use a small set of Boost libraries.

To install Boost C++ Libraries, you must download them, free of charge, from the following address:

https://www.boost.org

Click on the download link and select the corresponding file. Usually the filename of this download looks like this:

boost_X_XX_X.zip

where X_XX_XX is the version of Boost. When the download completes, unzip the file to the root folder of your C: drive. This will create a folder named C:\boost_X_XX_X on your C: drive. Rename it to C:\boost.

If you need even more information about Boost’s libraries you can click here


Linux (Ubuntu and Debian)

Before installing the Boost C++ Libraries on Linux, you should update the system repositories. This ensures that all of your systems software is up-to-date, reducing the likelihood of compatibility issues. Open a terminal and run the following commands.

sudo apt update -y
sudo apt upgrade -y

Next, run the following command to install the Boost C++ Libraries.

sudo apt install libboost-all-dev -y