Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-63772

Qt 5.9.5 moc issue

    XMLWordPrintable

Details

    • 0da3ebd9940a214cc7ea292d13cd86967cd89a66 (5.11.0b2) 19e0fc747ea3acf069c8c26c8fb2f1941bc916f2 (5.9.6)

    Description

      Hi! Since there are no x86 precompiled binaries for VS 2017, I use VS 2015 x86 binaries.

      The problem is when compile the program:

      :/Program Files (x86)/Microsoft Visual Studio 14.0/VC/ATLMFC/INCLUDE/atlbase.(3514): Parse error at "__identifier"

      and compilation fails.

      I have fixed it temporary by including this line in pro file.
      DEFINES += _ATL_NATIVE_INITIALIZATION

      Code snippet from atlbase.h

       

      #ifndef _ATL_STATIC_LIB_IMPL
      template <class T>
      inline BOOL WINAPI CAtlDllModuleT<T>::DllMain(
       _In_ DWORD dwReason,
       _In_opt_ LPVOID lpReserved) throw()
      {
      #if !defined(_ATL_NATIVE_INITIALIZATION)
       UNREFERENCED_PARAMETER(dwReason); UNREFERENCED_PARAMETER(lpReserved);
      #pragma warning(push) // disable 4483
      #pragma warning(disable:4483)
       using namespace __identifier("<AtlImplementationDetails>"); //3514 line of code
      #pragma warning(pop) // disable 4483
       if (dwReason == DLL_PROCESS_ATTACH)
       {
       ATLASSERT(DllModuleInitialized == false);
       }
       return TRUE;
      #else
       return _DllMain(dwReason, lpReserved);
      #endif
      }
      #endif // _ATL_STATIC_LIB_IMPL
      

      I also have included the atlbase.h file to the report.
      Please fix the issue. Thank you.

      Attachments

        1. atlbase.h
          209 kB
        2. reproducer.cpp
          0.4 kB
        For Gerrit Dashboard: QTBUG-63772
        # Subject Branch Project Status CR V

        Activity

          People

            andysh Andy Shaw
            cobra91151 Ruslan Sydorvych
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes