Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10765: multiple definitions for a bunch of symbols from /usr/include/boost/chrono/detail/inlined/posix/process_cpu_clocks.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-12-05 18:28:37
#10765: multiple definitions for a bunch of symbols from
/usr/include/boost/chrono/detail/inlined/posix/process_cpu_clocks.hpp
-------------------------------+---------------------
Reporter: i.zaufi@⦠| Owner: viboes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: chrono
Version: Boost 1.56.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------
Comment (by viboes):
Here they are the declaration.
{{{
class BOOST_CHRONO_DECL system_clock
{
public:
typedef BOOST_SYSTEM_CLOCK_DURATION duration;
typedef duration::rep rep;
typedef duration::period period;
typedef chrono::time_point<system_clock> time_point;
BOOST_STATIC_CONSTEXPR bool is_steady = false;
static BOOST_CHRONO_INLINE time_point now() BOOST_NOEXCEPT;
#if !defined BOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING
static BOOST_CHRONO_INLINE time_point now(system::error_code & ec);
#endif
static BOOST_CHRONO_INLINE std::time_t to_time_t(const time_point&
t) BOOST_NOEXCEPT;
static BOOST_CHRONO_INLINE time_point from_time_t(std::time_t t)
BOOST_NOEXCEPT;
};
}}}
Please, could you check if the preprocessed code contains the word inline.
If yes, this is a bug with the compiler. Could you check also if adding
BOOST_CHRONO_INLINE in the definition helps?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10765#comment:1> 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:17 UTC