title: How to use pthread on Qt Creator
body: <p>I want to execute a following code.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;thread&gt;
  
  void output() {
      std::cout &lt;&lt; "Hello World" &lt;&lt; std::endl;
  }
  
  int main()
  {
      std::thread t(output);
      t.join();
  
      return 0;
  }
  </code></pre>
  
  <p>I can't execute it.</p>
  
  <p>Qt Creator outputs 
          terminate called after throwing an instance of 'std::system_error'
            what():  Operation not permitted</p>
  
  <p>However I can execute on the terminal using the option of -pthread.
  Could you tell me how to use the option of -pthread in Qt Creator?</p>
  
  <p>My developing environment is Ubuntu(12.04), g++4.6.3, Qt Creator(2.4.1).</p>
  
  <p>Thank you.</p>