Boost C++ Libraries: Ticket #12888: Linking with boost thread does not work on mingw/gcc 4.4 https://svn.boost.org/trac10/ticket/12888 <p> boost 1.63 when used mingw32 compiling x86 target mingw32 version 4.4.0 </p> <p> Errors: c:/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../libmingw32.a(tlssup.o):tlssup.c:(.tls+0x0): multiple definition of `_tls_used' C:\boost\mingw/Lib/libboost_thread.a(tss_pe.o):tss_pe.cpp:(.rdata$T+0x0): first defined here </p> <p> modify “boost_1_63_0/libs/thread/src/win32/tss_pe.cpp” </p> <table class="wiki"> <tr>#if defined(<span class="underline">MINGW64</span>) <td> (<span class="underline">MINGW32_MAJOR_VERSION &gt;3) </span></td></tr></table> <blockquote> <p> ((<span class="underline">MINGW32_MAJOR_VERSION==3) &amp;&amp; (</span>MINGW32_MINOR_VERSION&gt;=18)) </p> </blockquote> <p> I've changed it to: </p> <table class="wiki"> <tr>#if defined(<span class="underline">MINGW64</span>) <td> (<span class="underline">MINGW64_VERSION_MAJOR) </span></td><td> (<span class="underline">MINGW32</span>) </td><td> (<span class="underline">MINGW32_MAJOR_VERSION &gt;3) </span></td></tr></table> <blockquote> <p> ((<span class="underline">MINGW32_MAJOR_VERSION==3) &amp;&amp; (</span>MINGW32_MINOR_VERSION&gt;=18)) </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12888 Trac 1.4.3 anonymous Thu, 09 Mar 2017 03:57:29 GMT <link>https://svn.boost.org/trac10/ticket/12888#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12888#comment:1</guid> <description> <p> Replying to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/12888" title="#12888: Bugs: Linking with boost thread does not work on mingw/gcc 4.4 (closed: fixed)">anonymous</a>: </p> <p> boost 1.63 when used mingw32 compiling x86 target<br /> </p> <p> mingw32 version 4.4.0 </p> <p> Errors: c:/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../libmingw32.a(tlssup.o):tlssup.c:(.tls+0x0): multiple definition of `_tls_used' C:\boost\mingw/Lib/libboost_thread.a(tss_pe.o):tss_pe.cpp:(.rdata$T+0x0): first defined here </p> <p> modify “boost_1_63_0/libs/thread/src/win32/tss_pe.cpp” </p> <pre class="wiki">#if defined(__MINGW64__) || (__MINGW64_VERSION_MAJOR) || (__MINGW32_MAJOR_VERSION &gt;3) || \ ((__MINGW32_MAJOR_VERSION==3) &amp;&amp; (__MINGW32_MINOR_VERSION&gt;=18)) I've changed it to: #if defined(__MINGW64__) || (__MINGW64_VERSION_MAJOR) || (__MINGW32__) || (__MINGW32_MAJOR_VERSION &gt;3) || \ ((__MINGW32_MAJOR_VERSION==3) &amp;&amp; (__MINGW32_MINOR_VERSION&gt;=18)) </pre> </description> <category>Ticket</category> </item> <item> <author>ljx0305@…</author> <pubDate>Thu, 09 Mar 2017 03:59:18 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12888#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12888#comment:2</guid> <description> <p> modify </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 29 Apr 2017 01:53:35 GMT</pubDate> <title>owner, status changed https://svn.boost.org/trac10/ticket/12888#comment:3 https://svn.boost.org/trac10/ticket/12888#comment:3 <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 viboes Sat, 29 Apr 2017 01:54:44 GMT <link>https://svn.boost.org/trac10/ticket/12888#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12888#comment:4</guid> <description> <p> I don't know if this is the good change. </p> <p> I no one is against I will apply it this weekend. We will see on the regression tests how it behaves. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 29 Apr 2017 15:58:10 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/12888#comment:5 https://svn.boost.org/trac10/ticket/12888#comment:5 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.65.0</span> </li> </ul> <p> <a class="ext-link" href="https://github.com/boostorg/thread/commit/5ee3e8d04b7a123f555c36c4b0f6d59df4b970ba"><span class="icon">​</span>https://github.com/boostorg/thread/commit/5ee3e8d04b7a123f555c36c4b0f6d59df4b970ba</a> </p> Ticket viboes Sat, 24 Jun 2017 14:56:21 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/12888#comment:6 https://svn.boost.org/trac10/ticket/12888#comment:6 <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> Ticket