Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.7.2, 6.8
-
None
Description
QUtlook example from Qt Creator with Qt 6.7.2 and 6.8.0-beta4 fails to build.
This works on 6.5.6, and when comparing the generated msoutl.h, there is a relevant difference. Reverting https://codereview.qt-project.org/c/qt/qtactiveqt/+/583714 fixes the problem.
Errors:
[5/7 0.1/sec] Building CXX object CMakeFiles\qutlook.dir\addressview.cpp.obj FAILED: CMakeFiles/qutlook.dir/addressview.cpp.obj C:\PROGRA~1\MICROS~4\2022\PROFES~1\VC\Tools\MSVC\1441~1.341\bin\HostX64\x64\cl.exe /nologo /TP -DQT_AXCONTAINER_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\build\Desktop_Qt_6_8_0_MSVC2022_64bit-Debug\qutlook_autogen\include -IC:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\build\Desktop_Qt_6_8_0_MSVC2022_64bit-Debug -external:IC:\Qt\6.8.0\msvc2022_64\include\QtCore -external:IC:\Qt\6.8.0\msvc2022_64\include -external:IC:\Qt\6.8.0\msvc2022_64\mkspecs\win32-msvc -external:IC:\Qt\6.8.0\msvc2022_64\include\QtAxContainer -external:IC:\Qt\6.8.0\msvc2022_64\include\QtGui -external:IC:\Qt\6.8.0\msvc2022_64\include\QtWidgets -external:W0 -DQT_QML_DEBUG /DWIN32 /D_WINDOWS /GR /EHsc /Zi /Ob0 /Od /RTC1 -std:c++17 -MDd -Zc:__cplusplus -permissive- -utf-8 /showIncludes /FoCMakeFiles\qutlook.dir\addressview.cpp.obj /FdCMakeFiles\qutlook.dir\ /FS -c C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\addressview.cpp C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\addressview.cpp(36): error C2665: 'Outlook::NameSpace::NameSpace': no overloaded function could convert all the argument types C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\build\Desktop_Qt_6_8_0_MSVC2022_64bit-Debug\msoutl.h(47626): note: could be 'Outlook::NameSpace::NameSpace(const Outlook::NameSpace &)' C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\addressview.cpp(36): note: 'Outlook::NameSpace::NameSpace(const Outlook::NameSpace &)': cannot convert argument 1 from 'Outlook::_NameSpace *' to 'const Outlook::NameSpace &' C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\addressview.cpp(36): note: Reason: cannot convert from 'Outlook::_NameSpace *' to 'const Outlook::NameSpace' C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\build\Desktop_Qt_6_8_0_MSVC2022_64bit-Debug\msoutl.h(47229): note: or 'Outlook::NameSpace::NameSpace(IDispatch *,QAxObject *)' C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\addressview.cpp(36): note: 'Outlook::NameSpace::NameSpace(IDispatch *,QAxObject *)': cannot convert argument 1 from 'Outlook::_NameSpace *' to 'IDispatch *' C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\addressview.cpp(36): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or parenthesized function-style cast C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\addressview.cpp(36): note: while trying to match the argument list '(Outlook::_NameSpace *)' C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\addressview.cpp(39): error C2665: 'Outlook::Items::Items': no overloaded function could convert all the argument types C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\build\Desktop_Qt_6_8_0_MSVC2022_64bit-Debug\msoutl.h(46731): note: could be 'Outlook::Items::Items(const Outlook::Items &)' C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\addressview.cpp(39): note: 'Outlook::Items::Items(const Outlook::Items &)': cannot convert argument 1 from 'Outlook::_Items *' to 'const Outlook::Items &' C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\addressview.cpp(39): note: Reason: cannot convert from 'Outlook::_Items *' to 'const Outlook::Items' C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\build\Desktop_Qt_6_8_0_MSVC2022_64bit-Debug\msoutl.h(46571): note: or 'Outlook::Items::Items(IDispatch *,QAxObject *)' C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\addressview.cpp(39): note: 'Outlook::Items::Items(IDispatch *,QAxObject *)': cannot convert argument 1 from 'Outlook::_Items *' to 'IDispatch *' C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\addressview.cpp(39): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or parenthesized function-style cast C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\addressview.cpp(39): note: while trying to match the argument list '(Outlook::_Items *)' C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\addressview.cpp(54): error C2440: '<function-style-cast>': cannot convert from 'Outlook::_NameSpace *' to 'Outlook::NameSpace' C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\addressview.cpp(54): note: 'Outlook::NameSpace::NameSpace': no overloaded function could convert all the argument types C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\build\Desktop_Qt_6_8_0_MSVC2022_64bit-Debug\msoutl.h(47626): note: could be 'Outlook::NameSpace::NameSpace(const Outlook::NameSpace &)' C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\addressview.cpp(54): note: 'Outlook::NameSpace::NameSpace(const Outlook::NameSpace &)': cannot convert argument 1 from 'Outlook::_NameSpace *' to 'const Outlook::NameSpace &' C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\addressview.cpp(54): note: Reason: cannot convert from 'Outlook::_NameSpace *' to 'const Outlook::NameSpace' C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\build\Desktop_Qt_6_8_0_MSVC2022_64bit-Debug\msoutl.h(47229): note: or 'Outlook::NameSpace::NameSpace(IDispatch *,QAxObject *)' C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\addressview.cpp(54): note: 'Outlook::NameSpace::NameSpace(IDispatch *,QAxObject *)': cannot convert argument 1 from 'Outlook::_NameSpace *' to 'IDispatch *' C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\addressview.cpp(54): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or parenthesized function-style cast C:\Qt\Examples\Qt-6.8.0\activeqt\qutlook\addressview.cpp(54): note: while trying to match the argument list '(Outlook::_NameSpace *)' [6/7 0.0/sec] Building CXX object CMakeFiles\qutlook.dir\msoutl.cpp.obj ninja: build stopped: subcommand failed. 20:06:33: The process "C:\Program Files\CMake\bin\cmake.exe" exited with code 1. Error while building/deploying project qutlook (kit: Desktop Qt 6.8.0 MSVC2022 64bit) When executing step "Build"
Attachments
Issue Links
- resulted from
-
QTBUG-123533 dumpcpp generates code that does not compile
- Closed