title: OS X clang -pthread
body: <p>What are the compiler/linker requirements for using pthread library with clang in OS X.</p>
  
  <p>With GCC i know that using -pthread set the appropriate compiler/linker options, but i unsure about OS X with clang.</p>
  
  <pre><code>air:~ jose$ clang++ -c test.cpp -pthread
  air:~ jose$ clang++ -o test -pthread test.o 
  clang: warning: argument unused during compilation: '-pthread'
  
  air:~ jose$ g++ -c test.cpp -pthread
  air:~ jose$ g++ -o test -pthread test.o 
  </code></pre>