Why do i get compilation message

I just installed 4.12.4

As soon as I generate a new C++ sample of any kind and try to run it I get the following error message;

------------------------    Message Body from Unreal 4,12,4  -----------------------------------------------------------------
The project could not be compiled. Would you like to open it in Visual Studio?

Running E:/Program Files (x86)/Epic Games/4.12/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject6 Development Win64 -project="e:/Users/ali/Documents/Unreal Projects/MyProject6/MyProject6.uproject" -editorrecompile -progress -noubtmakefiles -NoHotReloadFromIDE
@progress push 5%
Parsing headers for MyProject6Editor
  Running UnrealHeaderTool "e:\Users\ali\Documents\Unreal Projects\MyProject6\MyProject6.uproject" "e:\Users\ali\Documents\Unreal Projects\MyProject6\Intermediate\Build\Win64\MyProject6Editor\Development\MyProject6Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
Reflection code generated for MyProject6Editor in 3.6527606 seconds
@progress pop
Performing 11 actions (4 in parallel)
[3/11] Resource ModuleVersionResource.rc.inl
[2/11] Resource PCLaunch.rc
PCH.MyProject6.h.cpp
MyProject6Pawn.cpp
MyProject6.generated.cpp
MyProject6GameMode.cpp
MyProject6Hud.cpp
e:\Users\ali\Documents\Unreal Projects\MyProject6\Source\MyProject6\MyProject6Pawn.cpp: error C4599: '/ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 261 does not match precompiled header
e:\Users\ali\Documents\Unreal Projects\MyProject6\Intermediate\Build\Win64\UE4Editor\Inc\MyProject6\MyProject6.generated.cpp: error C4599: '/ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 261 does not match precompiled header
e:\Users\ali\Documents\Unreal Projects\MyProject6\Source\MyProject6\MyProject6GameMode.cpp: error C4599: '/ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 261 does not match precompiled header
e:\Users\ali\Documents\Unreal Projects\MyProject6\Source\MyProject6\MyProject6Hud.cpp: error C4599: '/ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 261 does not match precompiled header
MyProject6WheelFront.cpp
MyProject6WheelRear.cpp
e:\Users\ali\Documents\Unreal Projects\MyProject6\Source\MyProject6\MyProject6WheelRear.cpp: error C4599: '/ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 261 does not match precompiled header
e:\Users\ali\Documents\Unreal Projects\MyProject6\Source\MyProject6\MyProject6WheelFront.cpp: error C4599: '/ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 261 does not match precompiled header
MyProject6.cpp
e:\Users\ali\Documents\Unreal Projects\MyProject6\Source\MyProject6\MyProject6.cpp: error C4599: '/ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 261 does not match precompiled header
ERROR: UBT ERROR: Failed to produce item: e:\Users\ali\Documents\Unreal Projects\MyProject6\Binaries\Win64\UE4Editor-MyProject6.dll
Total build time: 38.38 seconds
______________________________________________________________________________________

I tried compiling the .sln file with VS2015 and I get pre-compiled header file error message.

Please help me.

Thanks,

Ali Ghazvini
alighazvini@outlook.com

This seems to be related to VS update:

Hey A_Ghazvini-

Given the errors in your message, I believe you are using Update 3 for Visual Studio. This is a known issue with a GitHub commit available to fix it. If you are using the source version of the engine, merging the commit linked below into your engine should allow you to compile the engine/project successfully.

https://github.com/EpicGames/UnrealEngine/commit/f011bacaaf292ebdc8f33fdeb78bb14d30eaa6bc

Cheers

Doug Wilson