title: thread is not a member of std c++
body: <p>I'm having this problem where i can't use threads because i keep getting the error "'thread' is not a member of 'std'".</p>
  
  <p>I am using MinGW with c++11 as a compiler flag.. On the little program i made yesterday it worked fine. Basically i want to play a "beep"-song while playing a little guessing game with pseudo random numbers.</p>
  
  <pre><code>int rnumber, guess, maxrand;
  
  std::thread t1(pinkpanther);
  t1.detach();
  
  cout &lt;&lt; "What do you want the maximum Number to be? ";
  cin &gt;&gt; maxrand;
  
  rnumber = randy(maxrand);
  
  //Start
  cout &lt;&lt; endl &lt;&lt; "This is a game!" &lt;&lt; endl &lt;&lt; "You have 5 tries to guess the random number generated by this program, have fun" &lt;&lt; endl;
  
  for (int i = 0; i &lt; 5; i = i + 1)
  {
      cout &lt;&lt; "Your guess: ";
      cin &gt;&gt; guess;
  
      if (guess &lt; rnumber)
      {
          cout &lt;&lt; "Your guessed number is smaller than the answer! Try again!" &lt;&lt; endl &lt;&lt; endl;
      }
      else if (guess &gt; rnumber)
      {
          cout &lt;&lt; "Your guessed number is bigger than the answer! Try again!" &lt;&lt; endl &lt;&lt; endl;
      }
      else
      {
          cout &lt;&lt; "you guessed the right number!";
          break;
      }
  }
  
  
  
  
  
  return 0;
  </code></pre>
  
  <p>it always gives me the same error <code>
  ||In function 'int main()':|
  'thread' is not a member of 'std'|
  't1' was not declared in this scope|
  ||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
  </code>
  and i really dont know why anymore</p>
  
  <p>Edit: pinkpanther() just plays the pinkpanther song i found in "beeps"</p>
  
  <p>Edit2: i have a couple libs included (windows,thread,ctime and ctdlib)</p>