As already mentioned, the initial MinGW distribution is not the best you can go with if you want to go with modern features. Instead, there are projects such as Nuwen (Stephan T. Lavavej website), as well as MinGW Builds that provide MinGW-w64 binaries.
Mentioning SFML is misleading since the problems are not related to SFML at all. Keep in mind that you will have to rebuild SFML if you change the compiler!
As a next step, it would be important to publish a minimal example of source code that reproduces errors, because right now we can only guess what is going wrong, based on errors.
If you are not using GNU extensions explicitly, you should use -std=c++11 instead of -std=gnu++11 , and if you look at the build command, you will notice that it turns on twice, which is optional.
And now to some assumptions about errors:
Account.h - Make sure the <mutex> header is included.main.cpp - Make sure the <mutex> header is included.main.cpp - If std::unique_lock<mutex> from your code, you need to add std:: , i.e. std::unique_lock<std::mutex> .main.cpp - time_t everything seems to be resolved, but be sure to include <chrono> and <ctime > (since time_t is defined in <ctime> ).
Lukas Jan 13 '14 at 9:22 2014-01-13 09:22
source share