Solved Windows10, MinGW5.3, QT5.10 compiling failure on windows.h
-
Hello I run into a serious regression problem.
I switched Laptop from Windows7 to Windows10. I have the 2 physically available.
Now my programs that have#include "windows.h"
does not compile anymore and there are a lot of compiler messages.
You can reproduce when compiling the Qt example activeqt/webbrowser.
THis example also does #include "windows.h" and I can not compile anymore.
On my Windows 7 there is no problem.Any hints? Do I have to set a "magic" define?
I also see that there is no CI toolset for the conbination Windows10&MINGW whereas WIndows7&MINGW Ci exists.
Any specific reson?below is the compile output of the "build main.cpp" function only.
regards Adib.
14:01:49: Running steps for project webbrowser...
14:01:49: Configuration unchanged, skipping qmake step.
14:01:49: Starting: "C:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" -f Makefile.Debug debug/main.o
C:\Qt\5.10.1\mingw53_32\bin\uic.exe ..\webbrowser\mainwindow.ui -o ui_mainwindow.h
g++ -fno-keep-inline-dllexport -g -std=gnu++11 -Wall -W -Wextra -dM -E -o debug\moc_predefs.h ........\5.10.1\mingw53_32\mkspecs\features\data\dummy.cpp
C:\Qt\5.10.1\mingw53_32\bin\moc.exe -DUNICODE -D_UNICODE -DWIN32 -DQT_QML_DEBUG -DQT_AXCONTAINER_LIB -DQT_AXBASE_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN --include debug/moc_predefs.h -IC:/Qt/5.10.1/mingw53_32/mkspecs/win32-g++ -IC:/Qt/Examples/Qt-5.10.1/activeqt/webbrowser -IC:/Qt/5.10.1/mingw53_32/include -IC:/Qt/5.10.1/mingw53_32/include/ActiveQt -IC:/Qt/5.10.1/mingw53_32/include/QtWidgets -IC:/Qt/5.10.1/mingw53_32/include/QtGui -IC:/Qt/5.10.1/mingw53_32/include/QtANGLE -IC:/Qt/5.10.1/mingw53_32/include/QtCore -I. -IC:/Qt/Tools/mingw530_32/lib/gcc/i686-w64-mingw32/5.3.0/include -IC:/Qt/Tools/mingw530_32/lib/gcc/i686-w64-mingw32/5.3.0/include-fixed -IC:/Qt/Tools/mingw530_32/i686-w64-mingw32/include -IC:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/c++ -IC:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/c++/i686-w64-mingw32 -IC:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/c++/backward ..\webbrowser\main.cpp -o debug\main.moc
g++ -c -fno-keep-inline-dllexport -g -std=gnu++11 -Wall -W -Wextra -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DQT_QML_DEBUG -DQT_AXCONTAINER_LIB -DQT_AXBASE_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\webbrowser -I. -I........\5.10.1\mingw53_32\include -I........\5.10.1\mingw53_32\include\ActiveQt -I........\5.10.1\mingw53_32\include\QtWidgets -I........\5.10.1\mingw53_32\include\QtGui -I........\5.10.1\mingw53_32\include\QtANGLE -I........\5.10.1\mingw53_32\include\QtCore -Idebug -I. -I........\5.10.1\mingw53_32\mkspecs\win32-g++ -o debug\main.o ..\webbrowser\main.cpp
In file included from C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/objbase.h:14:0,
from C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/ole2.h:17,
from C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/wtypes.h:12,
from C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/winscard.h:10,
from C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/windows.h:97,
from ..\webbrowser/webaxwidget.h:55,
from ./ui_mainwindow.h:25,
from ..\webbrowser\main.cpp:64:
C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/combaseapi.h:75:1: error: 'interface' does not name a type
interface IUnknown;
^
In file included from C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/objbase.h:14:0,
from C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/ole2.h:17,
from C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/wtypes.h:12,
from C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/winscard.h:10,
from C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/windows.h:97,
from ..\webbrowser/webaxwidget.h:55,
from ./ui_mainwindow.h:25,
from ..\webbrowser\main.cpp:64:
C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/combaseapi.h:146:9: error: 'interface' does not name a type
typedef interface IRpcStubBuffer IRpcStubBuffer;
^
C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/combaseapi.h:147:9: error: 'interface' does not name a type
typedef interface IRpcChannelBuffer IRpcChannelBuffer;
^
Makefile.Debug:533: recipe for target 'debug/main.o' failed
mingw32-make: *** [debug/main.o] Error 1
14:01:55: The process "C:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project webbrowser (kit: Desktop Qt 5.10.1 MinGW 32bit)
When executing step "Make"
14:01:55: Elapsed time: 00:07. -
@theAdib Did you try to delete the build folder, run qmake and rebuild?
-
@jsulm Yes, I did.
Did someone can reproduce the compilererror on Windows10&MINGW?
testing the qt builtin example activeqt/webbrowser?Adib.
-
Hi
I had no issue compiling
-
@mrjj thanks for trying.
I have in parallel an Qt 5.6.3 and MinGW4.9 - the last version supporting WindowsXP.
I will remove everything and try again from scratch.
Adib.
-
@theAdib I confirm, when reinstalling Qt5.10.1&MINGW5.3 only then compiling the activeqt example works.
Thanks for helping out.
I will check how to put this ticket to "solved" somehow.
Regards, Adib.
-
@theAdib
Hi super
In first post in , Topic Tools, there is menu to say its Solved.