I am compiling qt5.7 on windows with mingw32 and g++.4.9.3. While executing the configure.bat, I get this error :
C:\qt-everywhere-opensource-src-5.7.0\configure.bat -prefix C:\Qt-5.7 -skip qttools -skip qtwebchannel -skip qtwebengine -skip qtcharts -skip qtdatavis3d -platform win32-g++
C:\qt-everywhere-opensource-src-5.7.0\qtbase/qmake/library/qmakebuiltins.cpp: In member function 'QByteArray QMakeEvaluator::getCommandOutput(const QString&) const': C:\qt-everywhere-opensource-src-5.7.0\qtbase/qmake/library/qmakebuiltins.cpp:419:94: error: '_popen' was not declared in this scope + QLatin1String(" && ") + args).toLocal8Bit().constData(), "r")) {
The command that leads to this error is :
g++ -c -o qmakebuiltins.o -std=c++11 -DUNICODE -ffunction-sections -g -IC:\qt-everywhere-opensource-src-5.7.0\qtbase/qmake + lot of stuff
Also, the following code :
#include <stdio.h>
int main( int argc, char ** argv )
{
FILE * f = popen( argv[ 1 ], "r" );
return 0;
}
doesn't compile with
g++ -std=c++11 mytest.cpp -o mytest
but with :
>g++ -std=gnu++11 mytest.cpp -o mytest
So the question is how can I modify the option c++11 to gnu++11 which is passed to g++ by the configure file ? Thank you