This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
C++0x mutex don't compile on minGW
- From: Claudio La Rosa <clros at tiscali dot it>
- To: libstdc++ at gcc dot gnu dot org
- Date: Mon, 14 Feb 2011 08:19:12 -0800 (PST)
- Subject: C++0x mutex don't compile on minGW
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.