title: G++ makefile command with QProcess
body: <p>I'm trying to generate a .exe file with g++ compiler. I tried multiple ways without sucess.</p>
  
  <pre><code>1) QString program = "C:/Strawberry/c/bin/g++";
  QStringList arguments;
  arguments &lt;&lt; "g++ -o dialog C:/Documents/ED30/dialog.cpp";
  QProcess process;
  process.start(program, arguments);
  process.waitForFinished(-1);
  
  2) QProcess::execute("g++ -o dialog2 C:/Documents/ED30/dialog.cpp");
  
  3) QProcess::execute("g++ C:/Documents/ED30/dialog.cpp -o dialog2"); 
  </code></pre>
  
  <p>Everytime I have the same error message :</p>
  
  <p>"In file included from C:/Documents/ED30/dialog.cpp:1:0:
  C:/Documents/ED30/dialog.h:4:19: fatal error: QDialog: No such file or directory
  compilation terminated."</p>
  
  <p>Or sometimes nothing happens.</p>
  
  <p>I'm using Qt 5.7 with MinGW on windows 8.1</p>
  
  <p>EDIT:
  So after discussing the issue with members, I did some progress.
  Best code until now is :</p>
  
  <pre><code>system("g++ -o dialog2 -I C:/Qt/5.8/mingw53_32/include -I C:/Qt/5.8/mingw53_32/include/QtGui -I C:/Qt/5.8/mingw53_32/include/QtCore -I C:/Qt/5.8/mingw53_32/include/QtWidgets -L C:/Qt/5.8/mingw53_32/lib C:/Documents/ED30/dialog.cpp");
  </code></pre>
  
  <p>But this indicats me that MinGW isn't a c++ 11 compiler and it suggests me to write "-std=c++11 or -std=gnu++11" in the command-line in order to update the Compiler. After typing it in the compiler, the following error appears: "Unknow command".
  I tried with Qt 5.7 and 5.8 without success. 
  A solution guys ? </p>