Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#5407 closed Bugs (fixed)

linker error when using boost::chrono in more than one cpp file

Reported by: Edward Rankin <erankin@…> Owned by: viboes
Milestone: Boost 1.47.0 Component: chrono
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

I have discovered a bug in boost/chrono/detail/scan_keyword.hpp, when I use boost::chrono in more than one cpp file. The function void free_aux(void*) on L33 is not inlined, so the linker will complained it was already defined in another obj file.

Change History (4)

comment:1 by viboes, 12 years ago

Resolution: fixed
Status: newclosed

(In [71259]) Chrono: Fix #5407 linker error when using boost::chrono in more than one cpp file

comment:2 by viboes, 12 years ago

(In [71260]) Chrono: Fix #5407 linker error when using boost::chrono in more than one cpp file

comment:3 by viboes, 12 years ago

Hi,

thanks for reporting this error. I have committed a fix at revision 71260 either on trunk or release branch.

I will add a test for odr very soon.

Please be free to reopen the ticket if the modification doesn't solves the issue.

comment:4 by viboes, 11 years ago

Milestone: To Be DeterminedBoost 1.47.0
Note: See TracTickets for help on using tickets.