Compile error on 6.0.3
-
-
Hi and welcome to devnet,
You might want to consider providing:
- The translation of your error
- The code that triggered it
- An explanation of what you are doing
- etc.
-
@angelyouyou in Qt 6, application attribute Qt::AA_UseHighDpiPixmaps is deprecated.
As shown in the header file "High-DPI pixmaps are always enabled" -
@SGaist
Thanks for your help, I have uploaded my project on the github.I reinstalled the QT 5.15.2 and 6.0.3 on my windows 10. When I compiled my old project(compiled ok), error occured.
The part compile error for english version is below:
F:\Develop\QT\6.0.3\msvc2019_64\include\QtCore/qnamespace.h(464): error C2144: syntax error: "int" should be preceded by "}"
F:\Develop\QT\6.0.3\msvc2019_64\include\QtCore/qnamespace.h(464): error C2059: syntax error: ""
F:\Develop\QT\6.0.3\msvc2019_64\include\QtCore/qnamespace.h(493): error C2143: syntax error: missing ";" (before "}") -
@nagesh No, i didn't. I just created a new Qt Widgets project (Build system: cmake, Base class: QWidget, Generate form: no, Translation: no, Kits: Desktop Qt 6.1.0 MSVC2019 64bit) and pressed Ctrl+B immediately after running cmake on this new project.
I just tried to remove everything except including QApplication header, but result is same.UPD. There are actually a lot of errors in qnamespace.h:
C1003: error count exceeds 100; stopping compilation
If I remove #include <QApplication>, errors vanish.