Boost logo

Boost Users :

Subject: Re: [Boost-users] [Chrono][System]:header only Boost.Chrono is not working with header only Boost.System
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-07-05 16:56:44


Le 05/07/12 19:20, Dmitriy Matison a écrit :
> Hi,
>
> On RHEL 5.5 Boost.Chrono 1.1.0 (Boost 1.47.0) fails to run in header
> only mode with header only Boost.System.
>
> This file can't be compiled:
>
> #define BOOST_SYSTEM_NO_DEPRECATED // without it also error, but in
> [Boost.System]
> #define BOOST_SYSTEM_INLINED
> #define BOOST_CHRONO_HEADER_ONLY
>
> #include <boost/chrono.hpp>
>
> int main() {
> boost::chrono::steady_clock::time_point start =
> boost::chrono::steady_clock::now();
> return 0;
> }
>
> Error:
> In function `boost::chrono::steady_clock::now()':
> boost/chrono/detail/inlined/posix/chrono.hpp:85: undefined reference
> to `boost::system::system_category()'
>
> Any comments from Chrono\System guys?
>
>
Hi,

unfortunately the patch proposed to make Boost.System header only was
not accepted.

So even if Boost.Chrono is header-only it depends on a library that is
not :(

Best,
Vicente


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net