Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Compilation error with Visual Studio

    General and Desktop
    2
    2
    257
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      chiyuwang last edited by

      I am using Visual studio 2019 with compilor v120 and qt 5.15
      Error code like following, I have no idea where to look for the issue. Is there anyone seen similar issue?:
      3>c:\qt\5.15.2\msvc2019\include\qtcore\qglobal.h(391): error C2146: syntax error : missing ';' before identifier 'Deprecated_t'
      3>c:\qt\5.15.2\msvc2019\include\qtcore\qglobal.h(391): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      3>c:\qt\5.15.2\msvc2019\include\qtcore\qglobal.h(477): error C3646: 'noexcept' : unknown override specifier
      3>c:\qt\5.15.2\msvc2019\include\qtcore\qglobal.h(663): error C2143: syntax error : missing ';' before '<cv-qualifer>'
      3>c:\qt\5.15.2\msvc2019\include\qtcore\qglobal.h(663): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      3>c:\qt\5.15.2\msvc2019\include\qtcore\qglobal.h(663): error C2143: syntax error : missing ';' before '&'
      3>c:\qt\5.15.2\msvc2019\include\qtcore\qglobal.h(663): error C2143: syntax error : missing ',' before '&'
      3>c:\qt\5.15.2\msvc2019\include\qtcore\qglobal.h(665): error C2143: syntax error : missing ';' before '<cv-qualifer>'
      3>c:\qt\5.15.2\msvc2019\include\qtcore\qglobal.h(665): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      3>c:\qt\5.15.2\msvc2019\include\qtcore\qglobal.h(665): error C2143: syntax error : missing ';' before '&'
      3>c:\qt\5.15.2\msvc2019\include\qtcore\qglobal.h(665): error C2143: syntax error : missing ',' before '&'

      1 Reply Last reply Reply Quote 0
      • nagesh
        nagesh last edited by

        @chiyuwang Check for the required header file for inclusion and c++ standard

        1 Reply Last reply Reply Quote 1
        • First post
          Last post