title: clang++ under QtCreator can't work with c++11
body: <p>OS : OS X 10.8.1
  QtCreator : 2.6.2</p>
  
  <p>Command line is fine, but QtCreator fail to compile the codes.</p>
  
  <pre><code>#include &lt;functional&gt;
  #include &lt;iostream&gt;
  #include &lt;memory&gt;
  #include &lt;string&gt;
  #include &lt;vector&gt;
  
  int main(int argc, const char * argv[])
  {
      std::vector&lt;std::string&gt; strs{"yahoo", "haha"};
      for(auto const &amp;data : strs){
          std::cout&lt;&lt;data&lt;&lt;std::endl;
      }
  
      std::vector&lt;std::string&gt; strs2 = std::move(strs);
  
      std::unique_ptr&lt;int&gt; A(new int(3));
      std::cout&lt;&lt;*A&lt;&lt;std::endl;
  
      return 0;
  }
  </code></pre>
  
  <p>Command line : </p>
  
  <pre><code>clang++ -stdlib=libc++ -std=c++11 main.cpp -o test
  </code></pre>
  
  <p>Compiler setting of QtCreator
  <a href="http://www.flickr.com/photos/92283971@N04/8453188038/in/photostream" rel="nofollow">http://www.flickr.com/photos/92283971@N04/8453188038/in/photostream</a></p>
  
  <p>Qt .pro file</p>
  
  <pre><code>TEMPLATE = app
  CONFIG += console
  CONFIG -= app_bundle
  CONFIG -= qt
  
  SOURCES += main.cpp
  
  QMAKE_CXXFLAGS += -std=c++11 
  QMAKE_CXXFLAGS += -stdlib=libc++
  </code></pre>
  
  <p>Error message:</p>
  
  <blockquote>
    <p>clang: error: invalid deployment target for -stdlib=libc++ (requires
    OS X 10.7 or later) make: *** [main.o] Error 1</p>
  </blockquote>
  
  <p>But my OS number is 10.8.1</p>