Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compiling a specific boost library

Tags:

c++

boost

I only require a single .lib and .dll but I don't want to go through compiling process of all using bjam.exe How can i do that?

like image 956
user45445 Avatar asked Jan 22 '11 20:01

user45445


People also ask

What is the use of Boost library in C++?

Boost is a set of libraries for the C++ programming language that provides support for tasks and structures such as linear algebra, pseudorandom number generation, multithreading, image processing, regular expressions, and unit testing. It contains 164 individual libraries (as of version 1.76).

Can I build Boost with Cmake?

One of my current projects relies on Boost. Python, which requires a more recent version of Boost (1.64) than the one (1.54) provided by my Linux distribution (Ubuntu 14.04).

Is Boost header-only library?

Most Boost libraries are header-only: they consist entirely of header files containing templates and inline functions, and require no separately-compiled library binaries or special treatment when linking. The only Boost libraries that must be built separately are: Boost.

How do I update my Boost library?

To install the newest Boost version (including all libraries), you need to download the latest source code from Boost website (currently the latest version is 1.69. 0). Now you need to specify where to put the included headers and libraries, after compiling the source code.


1 Answers

to compile specific library you just need to specify it with --with-library option, e.g. --with-date_time, more info here

like image 91
Andriy Tylychko Avatar answered Sep 19 '22 01:09

Andriy Tylychko