title: How to use premake to specify a C++11 compilation?
body: <p>I have tried using the "<strong>C++11</strong>" <code>premake</code> flag, to get the GNU C++ compiler to do a C++11 compilation.</p>
  
  <p>However, this flag is not recognized and I get the message "invalid flag".</p>
  
  <p>The statement I used in the <code>premake</code> lua script is the following, at either the project or configuration level:</p>
  
  <pre><code>flags {"C++11"}
  </code></pre>
  
  <p>I am using <code>premake4</code> on Windows 10 through <code>MSYS</code>. The g++ version is 4.8.1 and supports C++11. (When I use <code>make</code> directly, I am passing the c++11 flag as a compilation option to the compiler and it works.)</p>
  
  <p>How can I proceed to get a C++11 compilation using <code>premake</code>?</p>