MinGW error: ‘thread’ is not a member of ‘std’

后端 未结 3 845
野的像风
野的像风 2020-12-03 10:50

I\'m trying to cross-compile for Windows a simple application:

#include 

void Func(){
  return;
}

int main(){
  std::thread thr1(Func);
  thr         


        
3条回答
  •  我在风中等你
    2020-12-03 11:39

    On Window, you can choice to use POSIX thread lib to construct your app. You can find it via https://sourceforge.net/projects/pthreads4w/files/

提交回复
热议问题