Boost C++ Libraries: Ticket #8550: [Boost.Thread] static linking of Boost.Thread with an MFC-Dll https://svn.boost.org/trac10/ticket/8550 <p> As there are several mail-threads on the above topic, I gave it a try and came up with a solution that let's regular MFC-Dlls work with static linked boost-threads: Just include boost/thread/win32/mfc_thread_init.hpp in the MFC-Dll code, then the MFC-Dll initialization code will be called. The solution has no impact on non-MFC code. I tested the code with VS 2012. But it should work at least with VS 2008. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8550 Trac 1.4.3 Tobias Loew Mon, 06 May 2013 14:47:03 GMT attachment set https://svn.boost.org/trac10/ticket/8550 https://svn.boost.org/trac10/ticket/8550 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">mfc_dll_thread.patch</span> </li> </ul> Ticket Tobias Loew Mon, 06 May 2013 14:48:52 GMT attachment set https://svn.boost.org/trac10/ticket/8550 https://svn.boost.org/trac10/ticket/8550 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">mfc_dll_thread.2.patch</span> </li> </ul> Ticket viboes Mon, 06 May 2013 14:55:49 GMT owner, status changed https://svn.boost.org/trac10/ticket/8550#comment:1 https://svn.boost.org/trac10/ticket/8550#comment:1 <ul> <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> </ul> Ticket Tobias Loew Tue, 07 May 2013 06:36:11 GMT <link>https://svn.boost.org/trac10/ticket/8550#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8550#comment:2</guid> <description> <p> The two attachments are identical, I accidentally added it twice. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Tue, 21 May 2013 22:48:17 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/8550#comment:3 https://svn.boost.org/trac10/ticket/8550#comment:3 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.55.0</span> </li> </ul> Ticket viboes Sat, 08 Jun 2013 12:57:33 GMT milestone changed https://svn.boost.org/trac10/ticket/8550#comment:4 https://svn.boost.org/trac10/ticket/8550#comment:4 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.55.0</span> → <span class="trac-field-new">Boost 1.54.0</span> </li> </ul> <p> Committed in trunk <a class="changeset" href="https://svn.boost.org/trac10/changeset/84684" title="Thread: apply patch #8550.">[84684]</a> </p> Ticket viboes Sun, 09 Jun 2013 17:18:16 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/8550#comment:5 https://svn.boost.org/trac10/ticket/8550#comment:5 <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/84717" title="Thread: fix #8550, #8671, #8672.">[84717]</a>) Thread: fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8550" title="#8550: Patches: [Boost.Thread] static linking of Boost.Thread with an MFC-Dll (closed: fixed)">#8550</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8671" title="#8671: Bugs: promise: set_..._at_thread_exit (closed: fixed)">#8671</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8672" title="#8672: Bugs: future&lt;&gt;::then(void()) doesn't works (closed: fixed)">#8672</a>. </p> Ticket