[Qt-interest] Qt mingw 4.4.3 fails to compile qtmain_win.cpp
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Tue Feb 10 17:21:22 CET 2009
Matthias Pospiech wrote on Tuesday, February 10, 2009 11:18 AM:
> > ...
> I solved it now by completely removing the PATH, and INCLUDE
> Variables, so that the compiler can not find it anymore. Now it
> compiles.
That's what I thought: the MinGW gcc compiler does not need the MS SDK headers - the MinGW brings its own headers. In fact, the gcc (in the MinGW environment) gets confused ("parse errors") when it hits the MS platform SDK headers first! As you have just observed...
So cleaning the INCLUDE (and possibly also LIB) environment makes the gcc (which as it seems also evaluates INCLUDE, as set in the Windows environment) find its proper headers, the "MinGW compatible headers".
Btw this is also why you don't get DirectX support in the MinGW version of Qt, because the DirectX includes can't be properly parsed by the gcc (because for example they #include other platform-dependent headers etc.). Off course the MinGW people could TECHNICALLY easily create "MinGW compatible DirectX" include files (just as they did for the most important platform SDK includes, such as Windows.h etc., I guess). But as someone once mentioned on this list: it is LEGALLY not possible (or at least on very shaky grounds - but then again, IANAL ;)
Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list