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

Qt 5.15: Compile error with newer MSVC versions

    XMLWordPrintable

Details

    • Windows

    Description

      MSVC 2019 & 2022 fails to compile:

      cl -c -FIglobal\qt_pch.h -Yuglobal\qt_pch.h -Fp.pch\release\Qt5CoreVEN_pch.pch -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -O2 -MD -std:c++17 -utf-8 -EHsc -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DNDEBUG -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -DPCRE2_STATIC -D_WINDLL -IE:\qt-everywhere-src-5.15.17\qtbase\src\corelib -I. -IE:\qt-everywhere-src-5.15.17\qtbase\src\3rdparty\zlib\src -Iglobal -IE:\qt-everywhere-src-5.15.17\qtbase\src\3rdparty\md5 -IE:\qt-everywhere-src-5.15.17\qtbase\src\3rdparty\md4 -IE:\qt-everywhere-src-5.15.17\qtbase\src\3rdparty\sha3 -IE:\qt-everywhere-src-5.15.17\qtbase\src\3rdparty -IE:\qt-everywhere-src-5.15.17\qtbase\src\3rdparty\double-conversion\include -IE:\qt-everywhere-src-5.15.17\qtbase\src\3rdparty\harfbuzz\src -IE:\qt-everywhere-src-5.15.17\qtbase\src\3rdparty\tinycbor\src -I.rcc/release -IE:\qt-everywhere-src-5.15.17\qtbase\include -I..\..\include -IE:\qt-everywhere-src-5.15.17\qtbase\include\QtCore -I..\..\include\QtCore -IE:\qt-everywhere-src-5.15.17\qtbase\include\QtCore\5.15.17 -IE:\qt-everywhere-src-5.15.17\qtbase\include\QtCore\5.15.17\QtCore -I..\..\include\QtCore\5.15.17 -I..\..\include\QtCore\5.15.17\QtCore -Itmp -I.moc\release -I.tracegen\release -IE:\qt-everywhere-src-5.15.17\qtbase\src\3rdparty\pcre2\src -IE:\qt-everywhere-src-5.15.17\qtbase\mkspecs\win32-msvc -Fo.obj\release\ @C:\Users\ris\AppData\Local\Temp\qmimeprovider.obj.94412.453.jom
      qmimeprovider.cpp
      E:\qt-everywhere-src-5.15.17\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(88): error C2479: 'QMimeProviderBase::{ctor}': 'allocate( )' is only valid for data items of static extent
      E:\qt-everywhere-src-5.15.17\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(88): error C2024: 'alignas' attribute applies to variables, data members and tag types only
      E:\qt-everywhere-src-5.15.17\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(637): error C2065: 'mimetype_database': undeclared identifier
      E:\qt-everywhere-src-5.15.17\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(638): error C2065: 'mimetype_database': undeclared identifier
      E:\qt-everywhere-src-5.15.17\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(638): error C2065: 'MimeTypeDatabaseOriginalSize': undeclared identifier
      E:\qt-everywhere-src-5.15.17\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(638): error C2338: Compressed MIME database is larger than the original size
      E:\qt-everywhere-src-5.15.17\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(640): error C2065: 'MimeTypeDatabaseOriginalSize': undeclared identifier
      E:\qt-everywhere-src-5.15.17\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(640): error C2338: Bundled MIME database is too big
      E:\qt-everywhere-src-5.15.17\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(642): error C2065: 'mimetype_database': undeclared identifier
      E:\qt-everywhere-src-5.15.17\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(643): error C2065: 'MimeTypeDatabaseOriginalSize': undeclared identifier
      

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            poikelin Joni Poikelin
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes