I have downloaded MinGW from the official website 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 the existing codebase in MinGW compiler but it is failing 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 errors related to locking and threading.!
I was able to compile the same codebase in Cygwin-64 without any issues. I need to build and compile successfully in MinGW in order to create some .dll files which would be compatible on MSVS.!
I have already referred the following links , but i couldn't get through the solution.
Getting std::thread/mutex to work under Win7 with mingw and g++ 4.7.2
MinGW 4.8.1 C++11 thread support
Your help would be greatly appreciated. Thanks.