I downloaded MinGW from the official site and installed it on my Windows 8.1 machine.
Running g ++ --version gives me g ++. exe (GCC) 4.8.1.
I am trying to compile an existing code base in the MinGW compiler, but it does not work with the following error:
error: 'mutex' in namespace 'std' does not name a type private: std::mutex m_Mutex; ^ error: 'condition_variable' in namespace 's
and many more blocking and threading errors.!
I was able to compile the same code base in Cygwin-64 without any problems. I need to compile and compile in MinGW to create some DLL files that will be compatible with MSVS.
I already referenced the following links, but I could not solve the problem.
Getting std :: thread / mutex to work under Win7 with mingw and g ++ 4.7.2
MinGW 4.8.1 C ++ 11 Stream Support
Your help will be greatly appreciated. Thanks.
source share