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 , 11 years ago
Status: | new → assigned |
---|
comment:2 by , 11 years ago
Milestone: | To Be Determined → Boost 1.49.0 |
---|
Note:
See TracTickets
for help on using tickets.
The solution is to inline the function that should be static.
Fixed in trunk. Committed revision 75436.