Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ Boost: is it included by default in most Linux distros?

Tags:

c++

linux

boost

Is the C++ Boost library usually included by default on most Linux distros?

like image 238
jldupont Avatar asked Oct 29 '09 17:10

jldupont


Video Answer


1 Answers

Many distributions include boost in their official repositories, but do not provide it by default on a standard install (in other words, it's not installed by default, but is relatively easy to install).

On the other hand, presuming you're asking this because you're wondering if you can use boost in a project that you want to work on many distributions: most of boost's libraries are header only because they're templates, which means they get compiled into your project and it doesn't matter whether or not a distribution has them installed (same effect as statically linking).

For those parts of boost that aren't header only, you can statically link and still make a binary that will run on distros that don't come with boost.

like image 167
Joseph Garvin Avatar answered Nov 06 '22 04:11

Joseph Garvin