Reason for libboost_log_setup.a library?

In the latest version of Boost 1.54, I see the Boost.Log Library . When I compile the whole Boost 1.54, I see that 2 binary files were created for the log library:

  • libboost_log.a
  • libboost_log_setup.a

What is the cause of the libboost_log_setup.a library? When should I tie him up?

+6
source share
1 answer

libboost_log_setup contains extended logging support.

For example, when using a formatter in your logging actions, you need this library.

By the way, note that you need to bind libboost_log_setup before libboost_log, since the former depends on the latter. In other words, you need to place libboost_log_setup before libboost_log in the library settings.

+4
source

Source: https://habr.com/ru/post/948610/


All Articles