Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.9.5
-
*OS:* Windows 10
*Qt:* Qt 5.9.5
Visual Studio 2017 version: 15.6.6
-
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.