C++0x mutex don't compile on minGW
Claudio La Rosa
clros@tiscali.it
Mon Feb 14 16:19:00 GMT 2011
Hi,
I have this code:
#include <thread>
using namespace std;
class TryMutex
{
public:
TryMutex();
virtual ~TryMutex();
protected:
private:
mutex myMutex;
};
myMutex is an instance of std::mutex, a new C++0x class for multithreading.
This code compiles fine on Linux with GCC/G++ 4.5.1, but under Window with
minGW (GCC/G++) 4.5.2 I have this error on compiling:
error: 'mutex' does not name a type
Why?
--
View this message in context: http://old.nabble.com/C%2B%2B0x-mutex-don%27t-compile-on-minGW-tp30923238p30923238.html
Sent from the gcc - libstdc++ mailing list archive at Nabble.com.
More information about the Libstdc++
mailing list