How to compile C++ std::thread code with MinGW?

前端 未结 1 468
既然无缘
既然无缘 2021-01-25 06:55

I would like to compile my c++11 project (recently moved to c++11) with MinGW. And I have compiling errors about c++11 code like \"std::thread not found\".

I used the la

相关标签:
1条回答
  • 2021-01-25 07:33

    MinGW mostly does not have a port of glibc which supports pthreading or gthreading like in GCC.

    For solving this, the first solution can be installing library of thread headers. The other solution can be working with GCC compiler.

    0 讨论(0)
提交回复
热议问题