Opened 11 years ago

Closed 11 years ago

#6113 closed Bugs (fixed)

duplicate symbol when BOOST_CHRONO_HEADER_ONLY is defined

Reported by: viboes Owned by: viboes
Milestone: Boost 1.49.0 Component: chrono
Version: Boost 1.47.0 Severity: Problem
Keywords: Cc:

Description

A lot of symbols that should be static to the implementation file when BOOST_CHRONO_HEADER_ONLY is not defined are now duplicated:

ld: duplicate symbol boost::chrono::chrono_detail::init_steady_clock(int&) in ../../../bin.v2/libs/date/build/darwin-4.2.1/debug/days_date.o and ../../../bin.v2/libs/date/build/darwin-4.2.1/debug/rel_date.o

The workaround is of course to let undefined BOOST_CHRONO_HEADER_ONLY

Change History (3)

comment:1 by viboes, 11 years ago

Status: newassigned

The solution is to inline the function that should be static.

#ifdef BOOST_CHRONO_HEADER_ONLY
#define BOOST_CHRONO_STATIC inline
#endif

Fixed in trunk. Committed revision 75436.

comment:2 by viboes, 11 years ago

Milestone: To Be DeterminedBoost 1.49.0

comment:3 by viboes, 11 years ago

Resolution: fixed
Status: assignedclosed

(In [75665]) Chrono: Fix #6092,#6093,#6113

Note: See TracTickets for help on using tickets.