ue4.17 git release branch will not compile with todays (8/14/2017) released visual studio 2017, 15.3 update.
i have tested with a fresh ue4.17git release branch copy, and a freshly installed copy of visual studio 2017, 15.3. there is no way to install any other version of visual studio.
all of them have the same error: C2187 syntax error: ‘identifier’ was unexpected here C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h 229
all of the errors point to that one file in windows 8.1 sdk.
some people were having trouble with 15.0 installation, make sure you go to Download Visual Studio Tools - Install Free for Windows, Mac, Linux scroll ALL the way down and download+install the x86 version of Microsoft Visual C++ Redistributable for Visual Studio 2017 first, before attempting the 15.0 installation.
the steps above i explained worked for me, for a 15.0 downgrade. you will need a Visual Studio Team Services account, im sure you can make one for free.
If you’re are on the source version (github) you can integrate that commit but if you are on the binary version (the launcher) you will have to wait till a hotfix is released I’m afraid.
This change didn’t help, i still have the issue.
C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2187: syntax error: ‘identifier’ was unexpected here
This worked for me. If you’re on Windows 10, you probably don’t need the Windows 8.1 SDK.
Edit:
Just a follow-up to this. I didn’t need the 8.1 SDK on a freshly installed Windows 10 PC, but it was required on a PC that had been upgraded from 8.1 to 10. On both computers, I was able to compile after making these changes.
Yeah, this is a hack we added to make UE compile. But if you have any non-UE projects which include this header then you will likely hit the same problem until Microsoft release an updated SDK (or you apply that hack mentioned above).