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: | 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)
Change History (4)
by , 8 years ago
| Attachment: | boost-chrono-link-errors.log added |
|---|
comment:1 by , 8 years ago
comment:2 by , 8 years ago
| Type: | Bugs → Support Requests |
|---|
comment:3 by , 8 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
Please, reopen it when you have the requested information.
Note:
See TracTickets
for help on using tickets.

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?