c2248 compile error with qcompare and Qt 6.7.0

Yu Jin technikmagma at gmail.com
Wed Apr 3 15:03:26 UTC 2024


I am not able to compile LyX with the newest Qt (6.7.0), I get these error
when compiling factory.cpp:
1>C:\Qt\6.7.0\msvc2019_64\include\QtCore\qcompare.h(228,30): error C2248:
'Qt::partial_ordering::partial_ordering': cannot access private member
declared in class 'Qt::partial_ordering'
1>Note: including file:
C:\Qt\6.7.0\msvc2019_64\include\QtCore/qlatin1stringview.h
1>Note: including file:
 C:\Qt\6.7.0\msvc2019_64\include\QtCore/qchar.h
1>(compiling source file '../../master/src/factory.cpp')
1>C:\Qt\6.7.0\msvc2019_64\include\QtCore\qcompare.h(189,5):
1>see declaration of 'Qt::partial_ordering::partial_ordering'
1>C:\Qt\6.7.0\msvc2019_64\include\QtCore\qcompare.h(65,7):
1>see declaration of 'Qt::partial_ordering'
1>C:\Qt\6.7.0\msvc2019_64\include\QtCore\qcompare.h(408,30): error C2248:
'Qt::partial_ordering::partial_ordering': cannot access private member
declared in class 'Qt::partial_ordering'
1>(compiling source file '../../master/src/factory.cpp')
1>C:\Qt\6.7.0\msvc2019_64\include\QtCore\qcompare.h(189,5):
1>see declaration of 'Qt::partial_ordering::partial_ordering'
1>C:\Qt\6.7.0\msvc2019_64\include\QtCore\qcompare.h(65,7):
1>see declaration of 'Qt::partial_ordering'
1>C:\Qt\6.7.0\msvc2019_64\include\QtCore\qcompare.h(411,27): error C2248:
'Qt::weak_ordering::weak_ordering': cannot access private member declared
in class 'Qt::weak_ordering'
1>(compiling source file '../../master/src/factory.cpp')
1>C:\Qt\6.7.0\msvc2019_64\include\QtCore\qcompare.h(377,5):
1>see declaration of 'Qt::weak_ordering::weak_ordering'
1>C:\Qt\6.7.0\msvc2019_64\include\QtCore\qcompare.h(220,7):
1>see declaration of 'Qt::weak_ordering'

I posted it on Qt bug tracker https://bugreports.qt.io/browse/QTBUG-123934
but they can't reproduce. Can anybody make sense of this? I don't
understand where LyX is trying to call these functions. Can you help create
a minimal example?

-- 
  Eugene
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240403/a27afb13/attachment-0001.html>


More information about the lyx-devel mailing list