title: How to compile and run C++0x with GCC/G++ in Eclipse CDT?
body: <p>I am trying to figure out how to use the upcoming C++ release 0x. It should be available in GCC 4.3+ with using the gcc std=gnu++0x option.</p>
  
  <p>My simple thread program using 0x compiles in Eclipse CDT with std=gnu++0x added in Project > properties > C/C++ Build > Settings > Miscellaneous > Other flags.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;thread&gt;
  using namespace std;
  
  void hello()
  {
      cout &lt;&lt; "Hello Concurrent World!" &lt;&lt; endl;
  }
  
  int main()
  {
      cout &lt;&lt; "starting" &lt;&lt; endl;
      thread t(hello);
      t.join();
      cout &lt;&lt; "ending" &lt;&lt; endl;
      return 0;
  }
  </code></pre>
  
  <p>The program only prints "starting" and returns 0. Does anyone know why it does not run the hello function threaded?</p>