Boost C++ Libraries: Ticket #2630: <boost/asio/detail/win_thread.hpp> won't compile with MinGW 3.4.5 https://svn.boost.org/trac10/ticket/2630 <p> My file looks like this: </p> <pre class="wiki">#include &lt;boost/asio/detail/win_thread.hpp&gt; using namespace std; int main () { return 0; } </pre><p> and I issue a compile in msys like this: </p> <pre class="wiki">$ g++ test.cpp -D_WIN32_WINNT </pre><p> and I get the following error: </p> <pre class="wiki">In file included from test.cpp:1: c:/dev/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/boost/asio/detail/win_thread.hpp: In static member function `static bool boost::asio::detail::win_thread_base&lt;T&gt;::terminate_threads()': c:/dev/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/boost/asio/detail/win_thread.hpp:55: error: `::InterlockedExchangeAdd' has not been declared c:/dev/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/boost/asio/detail/win_thread.hpp: In static member function `static void boost::asio::detail::win_thread_base&lt;T&gt;::set_terminate_threads(bool)': c:/dev/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/boost/asio/detail/win_thread.hpp:60: error: `::InterlockedExchange' has not been declared </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2630 Trac 1.4.3 Attila Oláh <jolafix@…> Fri, 02 Jan 2009 08:17:37 GMT keywords, component changed; owner set https://svn.boost.org/trac10/ticket/2630#comment:1 https://svn.boost.org/trac10/ticket/2630#comment:1 <ul> <li><strong>keywords</strong> windows mingw added; asio removed </li> <li><strong>owner</strong> set to <span class="trac-author">chris_kohlhoff</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">asio</span> </li> </ul> Ticket Attila Oláh <jolafix@…> Fri, 02 Jan 2009 08:18:42 GMT cc set https://svn.boost.org/trac10/ticket/2630#comment:2 https://svn.boost.org/trac10/ticket/2630#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">jolafix@…</span> added </li> </ul> Ticket chris_kohlhoff Thu, 16 Apr 2009 08:26:44 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2630#comment:3 https://svn.boost.org/trac10/ticket/2630#comment:3 <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">worksforme</span> </li> </ul> <p> I cannot reproduce this using MingGW's g++ 3.4.5 with boost SVN trunk. Please reopen if you can still reproduce it. </p> Ticket anonymous Thu, 16 Apr 2009 10:25:59 GMT <link>https://svn.boost.org/trac10/ticket/2630#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2630#comment:4</guid> <description> <p> Sorry I forgot to close this ticket. Now it works for me too, but I just can't remember what did I do to make it work with that release. Anyway the new SVN works like a charm for me. </p> </description> <category>Ticket</category> </item> </channel> </rss>