title: C++ compiler not finding #include <thread>
body: <p>Here is the top of my source file:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;thread&gt;
  #include &lt;fstream&gt;
  </code></pre>
  
  <p>...</p>
  
  <pre><code>thread help(startHelp);
  </code></pre>
  
  <p>Where the thread is inside the function handleRequestsFromServer and startHelp is a <code>void</code> function.</p>
  
  <p>When compiling this with <code>g++</code> on Mac OS X 10.8.4, I get this error:</p>
  
  <pre><code>$ g++ diskutilityhelper.cpp -o run.out
  diskutilityhelper.cpp:5:18: error: thread: No such file or directory
  diskutilityhelper.cpp: In function ‘void handleRequestsFromServer()’:
  diskutilityhelper.cpp:140: error: ‘thread’ was not declared in this scope
  diskutilityhelper.cpp:140: error: expected `;' before ‘bomb’
  </code></pre>
  
  <p>I don't understand this error at all. Could anyone please help?</p>