Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-29284

Qt Creator failed to build with errors C2039, C2061, C3668, C2259 on MSVC on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • Qt Creator 12.0.0
    • Building Qt Creator
    • None
    • Windows 10 and VS2022,
      The GitHub commit we used 29811f8.
    • Windows

    Description

      Qt Creator failed to build with errors C2039, C2061, C3668, C2259 on MSVC on Windows, could you please help look at this issue or provide some workarounds? Thanks in advance.

       

      Steps to reproduce:

      1. Download the Download attachment: localhelpmanager.i
      2. Open x64 Native Tools Command Prompt for VS 2022.
      3. cl.exe /nologo /TP external:W0 /DWIN32 /D_WINDOWS /GR /EHsc /O2 /Ob2 /DNDEBUG -MD /wd4573 /W3 -Zc:__cplusplus -permissive -utf-8 -std:c++17 -c .\localhelpmanager.i

      Error Msg:

      [Please see the attached log for detailed log]

      F:\gitP\qt-creator\qt-creator\build_amd64>cl.exe /nologo /TP external:W0 /DWIN32 /D_WINDOWS /GR /EHsc /O2 /Ob2 /DNDEBUG -MD /wd4573 /W3 -Zc:__cplusplus -permissive -utf-8 -std:c++17 -c .\localhelpmanager.i
      localhelpmanager.i
      F:\gitP\qt-creator\qt-creator\src\plugins\help\webenginehelpviewer.h(74): error C2039: 'FindFlags': is not a member of 'Core'
      F:\gitP\qt-creator\qt-creator\src\plugins\coreplugin/find/textfindconstants.h(12): note: see declaration of 'Core'
      F:\gitP\qt-creator\qt-creator\src\plugins\help\webenginehelpviewer.h(74): error C2061: syntax error: identifier 'FindFlags'
      F:\gitP\qt-creator\qt-creator\src\plugins\help\webenginehelpviewer.h(74): error C3668: 'Help::Internal::WebEngineHelpViewer::findText': method with override specifier 'override' did not override any base class methods
      F:\gitP\qt-creator\qt-creator\src\plugins\help\localhelpmanager.cpp(323): error C2259: 'Help::Internal::WebEngineHelpViewer': cannot instantiate abstract class
      F:\gitP\qt-creator\qt-creator\src\plugins\help\webenginehelpviewer.h(57): note: see declaration of 'Help::Internal::WebEngineHelpViewer'
      F:\gitP\qt-creator\qt-creator\src\plugins\help\localhelpmanager.cpp(323): note: due to following members:
      F:\gitP\qt-creator\qt-creator\src\plugins\help\localhelpmanager.cpp(323): note: 'bool Help::Internal::HelpViewer::findText(const QString &,Utils::FindFlags,bool,bool,bool *)': is abstract
      F:\gitP\qt-creator\qt-creator\src\plugins\help\helpviewer.h(57): note: see declaration of 'Help::Internal::HelpViewer::findText'
      F:\gitP\qt-creator\qt-creator\src\plugins\help\localhelpmanager.cpp(323): error C2259: 'Help::Internal::WebEngineHelpViewer': cannot instantiate abstract class
      F:\gitP\qt-creator\qt-creator\src\plugins\help\webenginehelpviewer.h(57): note: see declaration of 'Help::Internal::WebEngineHelpViewer'
      F:\gitP\qt-creator\qt-creator\src\plugins\help\localhelpmanager.cpp(323): note: due to following members:
      F:\gitP\qt-creator\qt-creator\src\plugins\help\localhelpmanager.cpp(323): note: 'bool Help::Internal::HelpViewer::findText(const QString &,Utils::FindFlags,bool,bool,bool *)': is abstract
      F:\gitP\qt-creator\qt-creator\src\plugins\help\helpviewer.h(57): note: see declaration of 'Help::Internal::HelpViewer::findText'

      Attachments

        1. build-1.log
          4.41 MB
        2. localhelpmanager-1.i
          7.57 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            con Eike Ziller
            kawasaki Kawasaki Ninja
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes