title: Threads in Eclipse AND c++11
body: <p>My goal has been to create multi-threading programs, and I can not even get a simple thread
  to execute ON ECLIPSE CDT.  my Tools:
  ECLIPSE 3.8.1 CDT
  Ubuntu 13.10</p>
  
  <p>I have noticed very similar issues regarding mine.  I have tried those other solutions but I could not get them to work for me.</p>
  
  <p>When I type the code in Eclipse CDT, Eclipse does not 'resolve' the symbols 'thread', however,  It can find the header file 'thread'.  'Mutex' also does not resolve.  Furthermore, after building, I run the program, eclipse returns :</p>
  
  <p>"terminate called after throwing an instance of 'std::system_error'
    what():  Enable multithreading to use std::thread: Operation not permitted"</p>
  
  <p>Some additional notes:</p>
  
  <p>I can compile and execute the code in the terminal using:
  'clang++ c.cpp -pthread -std=c++11'
  but...
  'g++ c.cpp -pthread -std=c++11' compiles and
  produces the same error as quoted above.  So it looks like it's a compiler issue.  I did
  start to write the code in a new project within Eclipse CDT with the clang++ compiler and now that gives the same non-resolved 'thread' and produces the error as quoted above.  So now I think I have some wrong settings, paths or flags set in Eclipse.</p>
  
  <pre><code>include &lt;iostream&gt;
  include &lt;thread&gt;
  
  using namespace std;
  void p1(){
      cout&lt;&lt;"process 1 is processing"&lt;&lt;endl;
  }
  
  int main() {
      thread t1(&amp;p1);
  
      cout&lt;&lt;"Hello from main()"&lt;&lt;endl;
      t1.join();
      return 0;
  }
  </code></pre>