Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-68954

QtBase does not compile on Windows with MSVC 2017

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.11.2
    • 5.11
    • Build System, QPA: Windows
    • Windows 10 x64

      MSVC 2017 (Visual Studio Build Tools 15.7.3)

      JOM_1_1_2
    • 8d99965161f72b46cdbec53b725c824206ebd3c3

    Description

      Building 5.11 on Windows 10 x64 with an MSCV 2017 environment fails when trying to buildĀ 

      qtbase\src\3rdparty\angle\src\compiler\preprocessor\MacroExpander.h

      This appears to be due to using the c+17 standard where the MacroExpander has not been updated to conform to c+17.

      i:\workspace\qmlbench_qt_5.11_windows\52\qtbase\src\3rdparty\angle\src\compiler\preprocessor\MacroExpander.h(86): error C2039: 'auto_ptr': is not a member of 'std'
      C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.14.26428\include\sstream(14): note: see declaration of 'std'
      i:\workspace\qmlbench_qt_5.11_windows\52\qtbase\src\3rdparty\angle\src\compiler\preprocessor\MacroExpander.h(86): error C2143: syntax error: missing ';' before '<'
      i:\workspace\qmlbench_qt_5.11_windows\52\qtbase\src\3rdparty\angle\src\compiler\preprocessor\MacroExpander.h(86): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      i:\workspace\qmlbench_qt_5.11_windows\52\qtbase\src\3rdparty\angle\src\compiler\preprocessor\MacroExpander.h(86): error C2238: unexpected token(s) preceding ';'

      The change that caused this break appears to be Change-Id: I5d0ee9389a794d80983efffd152c95a4d9d8adbc (MSVC: Enable the detection of C++14 and 17 in MSVC 2017 15.7)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            owolff Oliver Wolff
            daniel.smith Daniel Smith
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes