[Interest] Visual Studio 2015 / Qt 5.9.1 Application build - Qt-Includes - Final slash switch surprise...

Kai Koehne Kai.Koehne at qt.io
Wed Sep 6 15:39:45 CEST 2017



> -----Original Message-----
> From: Interest [mailto:interest-bounces+kai.koehne=qt.io at qt-project.org]
> On Behalf Of Michael Hartung
> Sent: Wednesday, September 6, 2017 2:58 PM
> To: interest at qt-project.org
> Subject: Re: [Interest] Visual Studio 2015 / Qt 5.9.1 Application build - Qt-
> Includes - Final slash switch surprise...
> 
> Hi Thiago,
> 
> Thanks for your answer. Unfortunately its content does not make any sense.
> Or was it simply caused by an obsession to answer just any qt-interest email?
> 
> And by that keeping others away from thinking about it.
> 
> In fact nobody needs that!

Thiago is completely right: You showed an error that the compiler cannot find an include file, but did leave out _which_ file it cannot find. You seem to think that it couldn't find "qglobal.h", but that's not the case - it is an #include in line 45 of qglobal.h that the compiler cannot resolve.

Anyhow, peeking into the Qt 5.9 qglobal.h shows that it's most likely

   #  include <type_traits>

Which just happens to be the first system include.

So it seems your MSVC environment is botched. Check the content of %INCLUDE%. For me it lists e.g. C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include , which is also where type_traits is found. 

Kai

> Michael
> 
> 
> Am 04.09.2017 um 14:02 schrieb Thiago Macieira:
> > On Monday, 4 September 2017 05:22:46 -03 Michael Hartung wrote:
> >> "C:\Qt\Qt5.9.1\5.9.1\msvc2015_64\include\QtCore/qglobal.h(45): fatal
> >> error C1083: Cannot open include file..."
> >
> > The ... here is the most important information: the file it couldn't open.
> >
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list