Boost C++ Libraries: Ticket #7185: Header only chrono requires library https://svn.boost.org/trac10/ticket/7185 <p> Documentation for including chrono.hpp: <a href="http://www.boost.org/doc/libs/1_50_0/doc/html/chrono/users_guide.html">http://www.boost.org/doc/libs/1_50_0/doc/html/chrono/users_guide.html</a> </p> <p> implies that chrono can be configured as a 'header only library', by defining BOOST_CHRONO_HEADER_ONLY, but on VC9, I get a link error: cannot open file 'libboost_system-vc90-mt-gd-1_50.lib </p> <p> Adding a define for BOOST_ALL_NO_LIB results in two undefined objects: class boost::system::error_category const &amp; <span class="underline">cdecl boost::system::generic_category(void) class boost::system::error_category const &amp; </span>cdecl boost::system::system_category(void) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7185 Trac 1.4.3 DanSearles@… Tue, 31 Jul 2012 15:49:10 GMT <link>https://svn.boost.org/trac10/ticket/7185#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7185#comment:1</guid> <description> <p> Added a define for less documented BOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING, but still get the generic_category and system_category undefines </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 12 Aug 2012 11:40:43 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7185#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7185#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/7185#comment:1" title="Comment 1">DanSearles@…</a>: </p> <blockquote class="citation"> <p> Added a define for less documented BOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING, but still get the generic_category and system_category undefines </p> </blockquote> <p> The macro is documented here <a href="http://www.boost.org/doc/libs/1_50_0/doc/html/chrono/reference.html#chrono.reference.cpp0x.chrono_chrono_hpp.conf">http://www.boost.org/doc/libs/1_50_0/doc/html/chrono/reference.html#chrono.reference.cpp0x.chrono_chrono_hpp.conf</a>. </p> <p> Please could you tell me which .cpp file has the undefined symbols? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 12 Aug 2012 11:43:23 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7185#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7185#comment:3</guid> <description> <p> There is another possibility, please could you try BOOST_ERROR_CODE_HEADER_ONLY? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 12 Aug 2012 19:03:20 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/7185#comment:4 https://svn.boost.org/trac10/ticket/7185#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket DanSearles@… Sun, 12 Aug 2012 23:56:13 GMT <link>https://svn.boost.org/trac10/ticket/7185#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7185#comment:5</guid> <description> <p> I tried adding #define BOOST_ERROR_CODE_HEADER_ONLY and was able to compile and build without linker errors. The 'Fix' appears to be to just mention in the docs these needed defines, for the chrono header only version. </p> </description> <category>Ticket</category> </item> <item> <author>DanSearles@…</author> <pubDate>Sun, 12 Aug 2012 23:58:26 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7185#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7185#comment:6</guid> <description> <p> So the final set that worked was: #define BOOST_ERROR_CODE_HEADER_ONLY #define BOOST_ALL_NO_LIB #define BOOST_CHRONO_HEADER_ONLY #define BOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Wed, 15 Aug 2012 10:32:40 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/7185#comment:7 https://svn.boost.org/trac10/ticket/7185#comment:7 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.51.0</span> </li> </ul> <p> Committed in trunk revision 80043. </p> Ticket viboes Wed, 15 Aug 2012 10:37:14 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7185#comment:8 https://svn.boost.org/trac10/ticket/7185#comment:8 <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> Committed revision 80044. </p> Ticket