Unreal Engine 4.10.4 - New project won't compile

After a full year of nothing but launcher crashes, I’ve finally been able to install Unreal Engine 4.10 to start the lesson series. After seeing this error several times, I uninstalled and reinstalled Visual Studio 2015 to see if that would help, but I’m still getting this error. Whenever I try to start a new project with the specified settings (C++, Basic Code, no starter content) I get the following error message:

The project could not be compiled. Would you like to open it in Visual Studio?

Running E:/64bit software/Unreal/Unreal Engine/4.10/Engine/Binaries/DotNET/UnrealBuildTool.exe Part_01 Development Win64 -project=“E:/UserFiles/UnrealEngineProjects/UdemyCourse/Part_01/Part_01.uproject” -rocket -editorrecompile -progress -noubtmakefiles -2015
@progress push 5%
Parsing headers for Part_01Editor
Running UnrealHeaderTool “E:/UserFiles/UnrealEngineProjects/UdemyCourse/Part_01/Part_01.uproject” “E:\UserFiles\UnrealEngineProjects\UdemyCourse\Part_01\Intermediate\Build\Win64\Part_01Editor\Development\UnrealHeaderTool.manifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -rocket -installed
Reflection code generated for Part_01Editor in 6.3442169 seconds
@progress pop
Performing 7 actions (4 in parallel)
[3/7] Resource ModuleVersionResource.rc.inl
[2/7] Resource PCLaunch.rc
PCH.Part_01.h.cpp
Part_01.generated.cpp
Part_01GameMode.cpp
Part_01.cpp
E:\UserFiles\UnrealEngineProjects\UdemyCourse\Part_01\Intermediate\Build\Win64\UE4Editor\Inc\Part_01\Part_01.generated.cpp: error C4599: ‘/IE:\Software\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 228 does not match precompiled header
E:\UserFiles\UnrealEngineProjects\UdemyCourse\Part_01\Source\Part_01\Part_01GameMode.cpp: error C4599: ‘/IE:\Software\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 228 does not match precompiled header
E:\UserFiles\UnrealEngineProjects\UdemyCourse\Part_01\Source\Part_01\Part_01.cpp: error C4599: ‘/IE:\Software\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 228 does not match precompiled header
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: E:\UserFiles\UnrealEngineProjects\UdemyCourse\Part_01\Binaries\Win64\UE4Editor-Part_01.dll
Total build time: 34.39 seconds

This only happens on C++ projects. Launching Blueprint projects produces no error messages. What have I messed up and what do I need to do to fix it? -

Hello,

Try updating to 4.12.5 and seeing if you are getting the same errors.

Hello,

I am marking this topic as resolved for tracking purposes, as we have not heard from you in a few days. If this issue persists, feel free to respond to this thread. For any new issues, please create a new Answerhub topic.

Have a great day