Opened 8 years ago

Closed 8 years ago

#10765 closed Support Requests (invalid)

multiple definitions for a bunch of symbols from /usr/include/boost/chrono/detail/inlined/posix/process_cpu_clocks.hpp

Reported by: i.zaufi@… Owned by: viboes
Milestone: To Be Determined Component: chrono
Version: Boost 1.56.0 Severity: Problem
Keywords: Cc:

Description

I'm trying to build a shared library (using static boost libraries) and another executable linked w/ my DSO. at link stage I've got a multiple errors (see attached log file). the problem is in function declarations: yeah, from *.hpp file, and moreover, placed into inlined/ directory, but w/o inline` specifier!

Attachments (1)

boost-chrono-link-errors.log (15.9 KB ) - added by anonymous 8 years ago.

Download all attachments as: .zip

Change History (4)

by anonymous, 8 years ago

comment:1 by viboes, 8 years ago

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?

comment:2 by viboes, 8 years ago

Type: BugsSupport Requests

comment:3 by viboes, 8 years ago

Resolution: invalid
Status: newclosed

Please, reopen it when you have the requested information.

Note: See TracTickets for help on using tickets.