title: Qt: CONFIG += C++11, but -std=c++0x
body: <p>When I compile a project under <strong>Qt Creator 2.8 / Qt5.1</strong> with VS 2010 all is fine. If I do the same with MinGW I get the following error.</p>
  
  <pre><code> error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
  </code></pre>
  
  <p>I understand I need to enable C+11, but I have <code>CONFIG   += console c++11</code> in my .pro file. Is this not what is needed? <strong>What am I doing wrong?</strong></p>
  
  <p>When I look at the make I see:</p>
  
  <pre><code>CXXFLAGS      = -pipe -fno-keep-inline-dllexport -g -std=c++0x
  </code></pre>
  
  <p>Confusing, as I say c++11 in the pro file.</p>
  
  <ol>
  <li>Have deleted everything, run <code>qmake</code> etc, from the scratch, no result</li>
  <li>As said, with VS2010 it works</li>
  <li>Using the MinGW with gcc 4.8.0 from here. <a href="http://qt-project.org/downloads" rel="nofollow noreferrer">http://qt-project.org/downloads</a></li>
  <li>If this matters, Win7 32</li>
  </ol>
  
  <p>Checked:</p>
  
  <ul>
  <li>No ANSI: <a href="https://stackoverflow.com/questions/15632198/c11-include-thread-gives-compile-error">c++11 #include &lt;thread&gt; gives compile error</a></li>
  <li>std=c+11 MinGW: <a href="https://stackoverflow.com/questions/16136142/c11-functionality-with-mingw/16144116#16144116">C++11 functionality with MinGW</a></li>
  </ul>
  
  <p>Found solution, but can only accept it in some time: <a href="https://stackoverflow.com/a/19530028/356726">https://stackoverflow.com/a/19530028/356726</a></p>