title: C++ error Type 'std::thread' could not be resolved Eclipse Mars 4.5 , Ubuntu 12.04
body: <p>I am quite desperate. Eclipse keeps on giving the error </p>
  
  <pre><code>'std::thread' could not be resolved
  </code></pre>
  
  <p>I of course <code>#include &lt;thread&gt;</code></p>
  
  <p>I tried also the following which I found in another question in stackoverflow:
  Window -> Preferences -> C/C++ -> Build -> Settings -> Discovery -> CDT GCC Build-in Compiler Settings
  in the text box entitled Command to get compiler specs append -std=c++11</p>
  
  <p>NOW it looks like: <code>${COMMAND} ${FLAGS} -E -P -v -dD  -std=c++11 "${INPUTS}"</code></p>
  
  <p>Properties -> C/C++ Build -> Settings -> Tool Settings -> GCC C++ Compiler -> Dialect</p>
  
  <p>select ISO C++11 from the Language standard drop down.</p>
  
  <p>But it does not work. Anyone can help?</p>
  
  <p>UPDATE: I updated the compiler to version 4.8. The error is still there, but it compiles, and it even works... so it is enough for me! Thanks everyone for your help!</p>