Reputation: 620
I have the following setup:
I followed few post to add std=c++11 in Project property and make sure __cplusplus is 201103L. Here is the result:
Upvotes: 0
Views: 523
Reputation: 4850
To get support for std::thread
, you will want a MinGW build equipped with posix threading model support.
I'm not sure if there's a "classic" MinGW build with that feature, but it's available with MinGW-w64.
You can get a MinGW-w64 installation in a number of ways, but the installer under the "Mingw-builds" link should be sufficient to get you started (and will let you pick which release GCC you want).
Upvotes: 2