Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Critical build error in qmetatype.h (Qt 6.0.0)



  • Hello,

    I'm using Qt 6.0.0 preview to anticipate the release of a project (main compilation in Qt 5.15.0) and I've an issue with « qmetatype.h » when compiling with MSVC 2019 x64.

    The compiler said (English translation above – I'm French-speaking) :

    C2187: erreur de syntaxe : ';' inattendu ici
    C:\Qt\6.0.0\msvc2019_64\include\QtCore\qmetatype.h:2283: pendant la compilation du membre de données statique classe modèle 'const QtPrivate::QMetaTypeInterface QtPrivate::QMetaTypeInterfaceWrapper<Ty>::metaType'
    
    C2187: syntax error : ';' unexpected here
    C:\Qt\6.0.0\msvc2019_64\include\QtCore\qmetatype.h:2283: when compiling static data member of the model class 'const QtPrivate::QMetaTypeInterface QtPrivate::QMetaTypeInterfaceWrapper<Ty>::metaType'
    

    The issue doesn't appear in Qt 5.15.0.

    Does anyone have an idea to solve this issue (or to report it to Qt 6 team)? (I've tried to clean my project, rebuild and rerun QMake, without success.)

    Thanks a lot in advance for your help!

    Best regards,

    Bruno


  • Lifetime Qt Champion

    See https://bugreports.qt.io/browse/QTBUG-88122 and make sure that you use the latest msvc2019 compiler.



  • Thanks a lot! I ignored this bug report tool exists! This is exactly my issue!

    I've marked the topic as solved.


Log in to reply