Boost C++ Libraries: Ticket #4921: BOOST_THREAD_USE_DLL and BOOST_THREAD_USE_LIB are crucial and need to be documented https://svn.boost.org/trac10/ticket/4921 <p> Boost.Thread's documentation makes no reference to macros BOOST_THREAD_USE_DLL or BOOST_THREAD_USE_LIB, but they're crucial to correct building and linking on some platforms. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4921 Trac 1.4.3 Jim Bell <jim@…> Thu, 02 Dec 2010 13:44:35 GMT <link>https://svn.boost.org/trac10/ticket/4921#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4921#comment:1</guid> <description> <p> ...and they should have a line in thread's doc's table of contents. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Tue, 25 Jan 2011 00:55:24 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4921#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4921#comment:2</guid> <description> <p> In general boost is terrible for this sort of thing. The only way to learn about this kind of stuff is to get some some sort of cryptic error message when you try to compile your app, and then search for the compiler error in google. </p> </description> <category>Ticket</category> </item> <item> <author>Jim Bell <jim@…></author> <pubDate>Sat, 23 Apr 2011 09:58:00 GMT</pubDate> <title>version, milestone changed; cc set https://svn.boost.org/trac10/ticket/4921#comment:3 https://svn.boost.org/trac10/ticket/4921#comment:3 <ul> <li><strong>cc</strong> <span class="trac-author">jim@…</span> added </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.45.0</span> → <span class="trac-field-new">Boost Development Trunk</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.46.0</span> → <span class="trac-field-new">Boost 1.47.0</span> </li> </ul> Ticket Jim Bell <jim@…> Sat, 23 Apr 2011 10:02:43 GMT <link>https://svn.boost.org/trac10/ticket/4921#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4921#comment:4</guid> <description> <p> And (for the sake of the search engines) needing it and not supplying it gives you errors like such: </p> <pre class="wiki">undefined reference to `_imp___ZN5boost11this_thread18interruptible_waitEPvNS_6detail7timeoutE' In function `~thread_group': undefined reference to `_imp___ZN5boost6threadD1Ev' undefined reference to `_imp___ZN5boost6thread4joinEv' In function `thread&lt;void (*)()&gt;': undefined reference to `_imp___ZN5boost6thread12start_threadEv' In function `~auto_ptr': undefined reference to `_imp___ZN5boost6threadD1Ev' collect2: ld returned 1 exit status </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 04 Dec 2011 22:17:38 GMT</pubDate> <title>cc, owner, status, milestone changed https://svn.boost.org/trac10/ticket/4921#comment:5 https://svn.boost.org/trac10/ticket/4921#comment:5 <ul> <li><strong>cc</strong> <span class="trac-author">viboes</span> added </li> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.47.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> <p> I see that in addition Boost.Thread doesn't follows completely <a href="http://www.boost.org/doc/libs/1_48_0/libs/config/doc/html/boost_config/boost_macro_reference.html#boost_config.boost_macro_reference.macros_for_libraries_with_separate_source_code.automatic_library_selection">Automatic library selection</a>. </p> <p> It would be great to adopt the already documented way to build and use a library, document it and make the necessary adaptations on the code and bjam files. </p> <p> What about this text. </p> <p> <strong>Using and building the library</strong> </p> <p> Boost.Thread is configured following the conventions used to build <a href="http://www.boost.org/doc/libs/1_48_0/libs/config/doc/html/boost_config/boost_macro_reference.html#boost_config.boost_macro_reference.macros_for_libraries_with_separate_source_code">libraries with separate source code</a>. Boost.Thread will import/export the code only if the user has specifically asked for it, by defining either BOOST_ALL_DYN_LINK if they want all boost libraries to be dynamically linked, or BOOST_THREAD_DYN_LINK if they want just this one to be dynamically liked. </p> <p> The source code compiled when building the library defines a macros BOOST_THREAD_SOURCE that is used to import or export it. The user must not define this macro in any case. </p> Ticket viboes Sun, 11 Dec 2011 18:17:00 GMT milestone changed https://svn.boost.org/trac10/ticket/4921#comment:6 https://svn.boost.org/trac10/ticket/4921#comment:6 <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> <p> Committed in trunk revision <a class="missing ticket">#75905</a>. </p> Ticket viboes Tue, 17 Jan 2012 06:35:54 GMT <link>https://svn.boost.org/trac10/ticket/4921#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4921#comment:7</guid> <description> <p> Committed in trunk at revision <a class="changeset" href="https://svn.boost.org/trac10/changeset/76543" title=" * [@http://svn.boost.org/trac/boost/ticket/2741 #2741] Proposal to ...">[76543]</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Mon, 28 May 2012 15:32:42 GMT</pubDate> <title>status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/4921#comment:8 https://svn.boost.org/trac10/ticket/4921#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> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.49.0</span> → <span class="trac-field-new">Boost 1.50.0</span> </li> </ul> <p> Committed in release branch at <a class="changeset" href="https://svn.boost.org/trac10/changeset/78543" title="Merged boost.thread from trunk">[78543]</a> </p> Ticket