title: MinGW error: ‘thread’ is not a member of ‘std’
body: <p>I'm trying to cross-compile for Windows a simple application:</p>
  
  <pre><code>#include &lt;thread&gt;
  
  void Func(){
    return;
  }
  
  int main(){
    std::thread thr1(Func);
    thr1.detach();
    return 0;
  }
  </code></pre>
  
  <p>And that's what I get:</p>
  
  <pre><code>$ i686-w64-mingw32-g++ -static-libstdc++ -static-libgcc -pipe -g -std=c++0x ./threadstutor.cpp 
  ./threadstutor.cpp: In function ‘int main()’:
  ./threadstutor.cpp:8:3: error: ‘thread’ is not a member of ‘std’
  ./threadstutor.cpp:8:15: error: expected ‘;’ before ‘thr1’
  ./threadstutor.cpp:9:3: error: ‘thr1’ was not declared in this scope
  </code></pre>
  
  <p>Actually, this code have no such problem if compile with g++ for Ubuntu; but I need to cross-compile for Windows, and here I'm stuck.</p>