Re: [Boost-bugs] [Boost C++ Libraries] #8448: thread library needs linking against -lrt

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8448: thread library needs linking against -lrt
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-17 16:42:31


#8448: thread library needs linking against -lrt
-------------------------------------------------------+--------------------
  Reporter: Maciej SokoÅ‚owski <matemaciek@…> | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: chrono
   Version: Boost 1.53.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------------------------------+--------------------

Comment (by viboes):

 If you don't want to use the time related functions based on Boost.Chrono
 you can define BOOST_THREAD_DONT_USE_CHRONO. From Boost.Thread
 documentation:


 {{{
 Boost.Chrono

 Boost.Thread uses by default Boost.Chrono for the time related functions
 and define BOOST_THREAD_USES_CHRONO if BOOST_THREAD_DONT_USE_CHRONO is not
 defined. The user should define BOOST_THREAD_DONT_USE_CHRONO for compilers
 that don't work well with Boost.Chrono.
 }}}


 Otherwise you need to link with it, or define the macros needed to make
 Boost.Chrono header only. From Boost.Chrono documentation:


 {{{
 Building Boost.Chrono

 Boost.Chrono can be configured as a header-only library defining
 BOOST_CHRONO_HEADER_ONLY. However Boost.Chrono depends on the non header-
 only library Boost.System, so that you will need to link with
 boost_system.

 Boost.System has un undocumented feature (use of macro
 BOOST_ERROR_CODE_HEADER_ONLY) to make it header only, but it is buggy (see
 #7347 duplicate symbol while BOOST_ERROR_CODE_HEADER_ONLY is defined)

 If BOOST_CHRONO_HEADER_ONLY is not defined you need to compile it and
 build the library before use, for example using:

 bjam libs/chrono/build

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8448#comment:6>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC