This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]