Am Do., 4. Apr. 2024 um 17:51 Uhr schrieb Jean-Marc Lasgouttes: > Le 03/04/2024 à 17:03, Yu Jin a écrit : > > 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') > > Hi, > > I believe that the reason factory.cpp triggers this bug is that > InsetInfo.h includes <QDate>. I fixed that in git master, because it is > a bad idea and it is not really necessary.
Thanks > You should now experience a compiler error somewhere else %-] At least > it should be a less weird message. > Yeah I get this error now in Text.cpp Build started at 17:53... 1>------ Build started: Project: LyX (applications\LyX\LyX), Configuration: Debug x64 ------ 1>Text.cpp 1>C:\lyx\master\src\Text.cpp(5961,19): error C2065: 'uint': undeclared identifier 1>C:\lyx\master\src\Text.cpp(5961,11): error C2672: 'convert': no matching overloaded function found 1>C:\lyx\master\src\support\convert.h(24,8): 1>could be 'Target lyx::convert(Source)' 1> C:\lyx\master\src\Text.cpp(5961,19): 1> 'lyx::convert': invalid template argument for 'Target', type expected 1>Done building project "LyX.vcxproj" -- FAILED. (I omitted the Warnings) What we learn here is that including <QDate> might be enough to trigger > an error. > No, I tried on a minimal project and just including it did not do anything, compiled successfully. -- Eugene
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel