How to enable experimental C++11 concurrency features in MinGW?

前端 未结 8 1990
夕颜
夕颜 2020-11-30 06:46

When trying to compile the following code

#include 
#include 

void foo() { std::cout << \"foo\\n\"; }

int main()
{
  st         


        
8条回答
  •  情歌与酒
    2020-11-30 07:29

    Try MinGw builds:

    http://sourceforge.net/projects/mingwbuilds/

    This installer will allow you to choose whatever MinGW you want and also includes c++11 thread functionality.

提交回复
热议问题