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

Problem compiling QT 6 examples MSVC 2019: inline' not permitted on data declarations error



  • Hi!
    I've installed QT 6 on Windows with MSVCS 2019 Compiler, but when compile any qt example, I'm getting this kind of errors:
    .\Qt\6.0.1\msvc2019_64\include\QtCore\qglobal.h:1253: error: C2433: 'qOverload': CCon data declarations
    .\Qt\6.0.1\msvc2019_64\include\QtCore\qglobal.h:1254: error: C2433: 'qConstOverload': 'inline' not permitted on data declarations
    ...
    ...
    Can someone help me to fix this error?
    Thanks.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    You should check which version of Visual Studio installed and update it in case it's not the latest. Or if so, use a previous version.



  • @SGaist said in Problem compiling QT 6 examples MSVC 2019: inline' not permitted on data declarations error:

    You should check which version of Visual Studio installed and update it in case it's not the latest. Or if so, use a previous version.

    Hi SGaist.
    Thanks by your response.
    I have installed Visual Studio 2019 Community Edition, version 16.8.4 with MSVC v142 - VS 2019 C++ for x64/x86 (v14.28) toolset.
    With MinGW there is not problem to compile.
    Thanks.


Log in to reply