Boost C++ Libraries: Ticket #6113: duplicate symbol when BOOST_CHRONO_HEADER_ONLY is defined https://svn.boost.org/trac10/ticket/6113 <p> A lot of symbols that should be static to the implementation file when BOOST_CHRONO_HEADER_ONLY is not defined are now duplicated: </p> <p> ld: duplicate symbol boost::chrono::chrono_detail::init_steady_clock(int&amp;) 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 </p> <p> The workaround is of course to let undefined BOOST_CHRONO_HEADER_ONLY </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6113 Trac 1.4.3 viboes Thu, 10 Nov 2011 17:45:02 GMT status changed https://svn.boost.org/trac10/ticket/6113#comment:1 https://svn.boost.org/trac10/ticket/6113#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> The solution is to inline the function that should be static. </p> <pre class="wiki">#ifdef BOOST_CHRONO_HEADER_ONLY #define BOOST_CHRONO_STATIC inline #endif </pre><p> Fixed in trunk. Committed revision 75436. </p> Ticket viboes Thu, 10 Nov 2011 22:00:36 GMT milestone changed https://svn.boost.org/trac10/ticket/6113#comment:2 https://svn.boost.org/trac10/ticket/6113#comment:2 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.49.0</span> </li> </ul> Ticket viboes Sat, 26 Nov 2011 00:11:14 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6113#comment:3 https://svn.boost.org/trac10/ticket/6113#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/75665" title="Chrono: Fix #6092,#6093,#6113">[75665]</a>) Chrono: Fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6092" title="#6092: Bugs: input from non integral durations makes the compiler fail (closed: fixed)">#6092</a>,<a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6093" title="#6093: Bugs: [1/3]second fails as valid duration input (closed: fixed)">#6093</a>,<a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6113" title="#6113: Bugs: duplicate symbol when BOOST_CHRONO_HEADER_ONLY is defined (closed: fixed)">#6113</a> </p> Ticket