galbru
galbru

Reputation: 452

Build specific library from Boost C++ Library

I built the boost library in order to use the boost functions split and format.

I noticed that the split placed under the algorithm directory, but there is no library named 'algorithm' when I run --show-libraries to get the list of libraries.

When I built the whole boost, I didn't find which lib file to add to my project (I don't want to add the all the libs and headers).

How can I build this specific library?

Upvotes: 1

Views: 430

Answers (2)

marc
marc

Reputation: 1304

Both boost::algorithm and boost::format are header only, so no need to build. You will find both header files inside the include/boost/ folder:

  • include/boost/algorithm/algorithm.hpp
  • include/boost/format.hpp

Upvotes: 1

Youka
Youka

Reputation: 2715

When running bootstrap with --show-libraries:

The Boost libraries requiring separate building and installation are:

The algorithm library isn't listed and is even template for the STL equivalent -> header-only.

Upvotes: 1

Related Questions