Boost C++ Libraries: Ticket #6442: Let the user work with a header-only library https://svn.boost.org/trac10/ticket/6442 <p> Many libraries using Boost.System directly or indirectly could find more user if Boost.System were a header-only library. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6442 Trac 1.4.3 viboes Mon, 23 Jan 2012 23:47:11 GMT <link>https://svn.boost.org/trac10/ticket/6442#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6442#comment:1</guid> <description> <p> Next follows a patch. The user need to define BOOST_SYSTEM_INLINED to have a header-only lib. By default the windows files are taken from boost/detail/win32. The user needs to define BOOST_USE_WINDOWS_H if he has a preference for the windows files. </p> <p> I have tested it for Boost.System, Boost.Chrono and Boost.Thread on cygwin gcc-4.3.4 and mingw gcc-4.6.1 (and c++0x) and msvc 10. Boost Chrono uses it as a header only, Boost.Thread as a linked library. I will continue the test with other Boost libraries. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Mon, 23 Jan 2012 23:51:14 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/6442 https://svn.boost.org/trac10/ticket/6442 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">system_header_only_boost.patch</span> </li> </ul> <p> header part </p> Ticket viboes Mon, 23 Jan 2012 23:51:49 GMT attachment set https://svn.boost.org/trac10/ticket/6442 https://svn.boost.org/trac10/ticket/6442 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">system_header_only_libs.patch</span> </li> </ul> <p> libs part </p> Ticket Ulrich Eckhardt <ulrich.eckhardt@…> Tue, 24 Jan 2012 15:35:50 GMT cc set https://svn.boost.org/trac10/ticket/6442#comment:2 https://svn.boost.org/trac10/ticket/6442#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">ulrich.eckhardt@…</span> added </li> </ul> <p> There is also <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3103" title="#3103: Feature Requests: Allow using libraries without separately compiling them (closed: wontfix)">#3103</a> which doesn't require a macro but takes the approach that you include a file instead. </p> Ticket