Win10 ue4.12.4 c++ compile failed

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

Running E:/unreal/Epic Games/4.12/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject31 Development Win64 -project=“D:/unreal/MyProject31/MyProject31.uproject” -editorrecompile -progress -noubtmakefiles -NoHotReloadFromIDE
@progress push 5%
Parsing headers for MyProject31Editor
Running UnrealHeaderTool “D:\unreal\MyProject31\MyProject31.uproject” “D:\unreal\MyProject31\Intermediate\Build\Win64\MyProject31Editor\Development\MyProject31Editor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
Reflection code generated for MyProject31Editor in 3.1371543 seconds
@progress pop
Performing 7 actions (4 in parallel)
[2/7] Resource PCLaunch.rc
[3/7] Resource ModuleVersionResource.rc.inl
PCH.MyProject31.h.cpp
MyProject31GameMode.cpp
MyProject31.cpp
D:\unreal\MyProject31\Source\MyProject31\MyProject31GameMode.cpp: error C4599: “/ID:\Program Files (x86)\VC\INCLUDE”: ??? ???Ŀ 261 ??ƥ?? Ԥ???ͷ
D:\unreal\MyProject31\Source\MyProject31\MyProject31.cpp: error C4599: “/ID:\Program Files (x86)\VC\INCLUDE”: ??? ???Ŀ 261 ??ƥ?? Ԥ???ͷ
MyProject31.generated.cpp
D:\unreal\MyProject31\Intermediate\Build\Win64\UE4Editor\Inc\MyProject31\MyProject31.generated.cpp: error C4599: “/ID:\Program Files (x86)\VC\INCLUDE”: ??? ???Ŀ 261 ??ƥ?? Ԥ???ͷ
ERROR: UBT ERROR: Failed to produce item: D:\unreal\MyProject31\Binaries\Win64\UE4Editor-MyProject31.dll
Total build time: 46.76 seconds

opening the WindowsPlatformCompilerSetup.h file in source code
remove 4599 from the table of warnings at the top
add #pragma warning(disable : >4599) below the list

Hey fearless_-

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. 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

Thank you for your help,I will try this.

trying thank you

Success! Thank you