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

Compile-error when including QtCore5Compat

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 6.0 (Next Major Release)
    • Fix Version/s: 6.0.0 RC
    • Component/s: Core: Other
    • Labels:
      None
    • Environment:
      Windows 10, MSVC 2019 16.7
    • Commits:
      b690a43e4326cd9262a3ce2963949219624edd96 (qt/qt5compat/dev)

      Description

      When including <QtCore5Compat> I get the following compilation error:
      qt6-build-vs2019\qtbase\include\QtCore5Compat\QtCore5Compat(8): error C2124: divide or mod by zero

      QtCore5Compat
      #ifndef QT_QTCORE5COMPAT_MODULE_H
      #define QT_QTCORE5COMPAT_MODULE_H
      #include <QtCore5Compat/QtCore5CompatDepends>
      #include "qcore5global.h"
      #include "qbinaryjson.h"
      #include "qlinkedlist.h"
      #include "qregexp.h"
      #if QT_CONFIG(textcodec) // <--
      #include "qtextcodec.h"
      #endif
      #include "qtcore5compatversion.h"
      #endif
      
      qtcore5compat-config.h
      #define QT_FEATURE_textcodec 1
      #define QT_FEATURE_big_codecs 1
      #define QT_FEATURE_codecs 1
      #define QT_NO_ICONV 
      
      qtcore5compat-config_p.h
      #define QT_FEATURE_iconv -1
      

      I guess the problem is, that

        Attachments

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

          Activity

            People

            Assignee:
            sonakur Sona Kurazyan
            Reporter:
            mkrems Marcel Krems
            PM Owner:
            Maurice Kalinowski
            RnD Owner:
            Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes