Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#2630 closed Bugs (worksforme)

<boost/asio/detail/win_thread.hpp> won't compile with MinGW 3.4.5

Reported by: Attila Oláh <jolafix@…> Owned by: chris_kohlhoff
Milestone: Boost 1.38.0 Component: asio
Version: Boost 1.37.0 Severity: Problem
Keywords: windows, mingw Cc: jolafix@…

Description

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

Change History (4)

comment:1 by Attila Oláh <jolafix@…>, 14 years ago

Component: Noneasio
Keywords: windows mingw added; asio removed
Owner: set to chris_kohlhoff

comment:2 by Attila Oláh <jolafix@…>, 14 years ago

Cc: jolafix@… added

comment:3 by chris_kohlhoff, 14 years ago

Resolution: worksforme
Status: newclosed

I cannot reproduce this using MingGW's g++ 3.4.5 with boost SVN trunk. Please reopen if you can still reproduce it.

comment:4 by anonymous, 14 years ago

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.

Note: See TracTickets for help on using tickets.