Boost C++ Libraries: Ticket #9595: config/user.hpp incorrectly claims that Boost.Test must be staticly linked https://svn.boost.org/trac10/ticket/9595 <p> <a href="http://www.boost.org/doc/libs/1_55_0/boost/config/user.hpp">http://www.boost.org/doc/libs/1_55_0/boost/config/user.hpp</a> has a comment for BOOST_ALL_DYN_LINK and BOOST_WHATEVER_DYN_LINK that claims that Boost.Test must be staticly linked, but this is not true. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9595 Trac 1.4.3 John Maddock Tue, 11 Feb 2014 13:23:12 GMT <link>https://svn.boost.org/trac10/ticket/9595#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9595#comment:1</guid> <description> <p> Actually I believe it is still true: Boost.Test contains it's own version of main, and that can not reside in a Windows DLL, unlike on say Linux where it can be placed in an shared object. </p> <p> What am I missing? </p> </description> <category>Ticket</category> </item> <item> <author>Richard <legalize@…></author> <pubDate>Tue, 11 Feb 2014 19:31:54 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9595#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9595#comment:2</guid> <description> <p> If you look at my <a class="ext-link" href="http://user.xmission.com/~legalize/tmp/boost.test/libs/test/doc/html/"><span class="icon">​</span>documentation rewrite for Boost.Test</a> you'll see that you can compile the library in static or dynamic forms and both forms can have a main defined by the library or not. </p> <p> I have tested these on Windows and I didn't run into any problem with main being in the DLL, but perhaps I need to investigate that more closely. </p> <p> At any rate, you can most definitely compile Boost.Test for dynamic linking. This has been true for some time. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Fri, 04 Apr 2014 17:06:00 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9595#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9595#comment:3</guid> <description> <p> For dynamic linking, Boost.Test defines main in a header (when BOOST_TEST_MODULE or BOOST_TEST_MAIN is defined, which is required to be in exactly one translation unit.). </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Thu, 24 Apr 2014 10:33:25 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9595#comment:4 https://svn.boost.org/trac10/ticket/9595#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Updated in Git develop, see: <a class="ext-link" href="https://github.com/boostorg/config/commit/0b75ce040552967dc9070c4e3bbe49321b624ba9"><span class="icon">​</span>https://github.com/boostorg/config/commit/0b75ce040552967dc9070c4e3bbe49321b624ba9</a> </p> Ticket