Subject: [Boost-bugs] [Boost C++ Libraries] #2630: <boost/asio/detail/win_thread.hpp> won't compile with MinGW 3.4.5
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-01-02 06:28:36
#2630: <boost/asio/detail/win_thread.hpp> won't compile with MinGW 3.4.5
---------------------------------------------+------------------------------
Reporter: Attila Oláh <jolafix_at_[hidden]> | Owner:
Type: Bugs | Status: new
Milestone: Boost 1.38.0 | Component: None
Version: Boost 1.37.0 | Severity: Problem
Keywords: asio |
---------------------------------------------+------------------------------
My file looks like this:
{{{
#include <boost/asio/detail/win_thread.hpp>
using namespace std;
int main () {
return 0;
}
}}}
and I issue a compile in msys like this:
{{{
$ g++ test.cpp -D_WIN32_WINNT
}}}
and I get the following error:
{{{
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<T>::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<T>::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
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2630> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC