#5407 closed Bugs (fixed)
linker error when using boost::chrono in more than one cpp file
| Reported by: | 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 , 12 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | new → closed | 
comment:2 by , 12 years ago
comment:3 by , 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 , 11 years ago
| Milestone: | To Be Determined → Boost 1.47.0 | 
|---|
  Note:
 See   TracTickets
 for help on using tickets.
    
(In [71259]) Chrono: Fix #5407 linker error when using boost::chrono in more than one cpp file