When i start UE4 with C++ it gives me compile failed every time

strong text
Please Help Me when i create new Project on UE 4.12 with C++ the game gives me compile failed:
The project could not be compiled.
Would you like to open it in Visual Studio?

Running C:/Program Files (x86)/Epic Games/4.12/Engine/Binaries/DotNET/UnrealBuildTool.exe MyGun Development Win64 -project=“C:/Users/User/Desktop/UNREAL/MyGun/MyGun.uproject” -editorrecompile -progress -noubtmakefiles -NoHotReloadFromIDE
@progress push 5%
Parsing headers for MyGunEditor
Running UnrealHeaderTool “C:\Users\User\Desktop\UNREAL\MyGun\MyGun.uproject” “C:\Users\User\Desktop\UNREAL\MyGun\Intermediate\Build\Win64\MyGunEditor\Development\MyGunEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
Reflection code generated for MyGunEditor in 2,6671969 seconds
@progress pop
Performing 10 actions (2 in parallel)
[2/10] Resource PCLaunch.rc
PCH.MyGun.h.cpp
[3/10] Resource ModuleVersionResource.rc.inl
MyGunCharacter.cpp
MyGunHUD.cpp
C:\Users\User\Desktop\UNREAL\MyGun\Source\MyGun\MyGunCharacter.cpp: error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 261 does not match precompiled header
C:\Users\User\Desktop\UNREAL\MyGun\Source\MyGun\MyGunHUD.cpp: error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 261 does not match precompiled header
MyGun.generated.cpp
C:\Users\User\Desktop\UNREAL\MyGun\Intermediate\Build\Win64\UE4Editor\Inc\MyGun\MyGun.generated.cpp: error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 261 does not match precompiled header
MyGunGameMode.cpp
C:\Users\User\Desktop\UNREAL\MyGun\Source\MyGun\MyGunGameMode.cpp: error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 261 does not match precompiled header
MyGunProjectile.cpp
C:\Users\User\Desktop\UNREAL\MyGun\Source\MyGun\MyGunProjectile.cpp: error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 261 does not match precompiled header
MyGun.cpp
C:\Users\User\Desktop\UNREAL\MyGun\Source\MyGun\MyGun.cpp: error C4599: ‘/IC:\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: C:\Users\User\Desktop\UNREAL\MyGun\Binaries\Win64\UE4Editor-MyGun.dll
Total build time: 25,28 seconds

I unnistal the game and install it again but is the same error, then it appears a button: “Open With Visual Studio”
i press the button and it just opens the visual studio and not the actual UE engine
When i start UE4 with blueprints the engine just runs okay plz help me

Hello,

Are you using Update 3 for Visual Studio 2015?

Hi,

I installed again Visual studio and the same error,
i dont think its my PC problema because my pc is really good .-. i dont understand the problema but thx for your help :3

Thx Man gonna try it out now the UE4 staff is really great thx man :3 have a awesome day

Hello,

If you are using Visual Studio 2015 Update 3, there is currently an issue where it is not working with 4.12.4. The fix will not be available in the launcher version until a future release, but if you are using a source build you can pull in the fix linked below to resolve your issue:

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

Have a great day

https://github.com/EpicGames/UnrealEngine/commit/f011bacaaf292ebdc8f33fdeb78bb14d30eaa6bc the link you send me is right? for appears “this is not the page you search” also i tryed the 4.11.2 and the same error…

Have you linked your Unreal Engine account to your GitHub account? You’ll need to do that before you can access that commit.

how do i go to my account to link them

The link I provided will help you get set up.

already put my name and linked the account
still the link dosent work

Have you ensured to check your email and accept the invitation to join the Epic Games Organization on github? You’ll need to do this in order to access the fix. Ensure that you haven’t missed any of the steps in the setup guide.

i have
“EpicTeamAdmin added you to the Epic Games team Developers” on my gmail but still cant open the page and the same error .-.

I try but the vídeo on the link you provided os not uptaded and everything is just so diferente
pls dont put this answer “resolved” because i still need help

im just gonna try another engine

If you go to Github and log in, are you able to access the Unreal Engine dashboard? The commit link is working fine for me, so it’s possible that you have missed a step in your setup. Ensure that you have run through the entire setup guide that I provided.

We mark topics as resolved for tracking purposes. As the user, you are more than welcome to come back in and open up a thread at any time when you have new information.

I finally solved this problem , i added new C++ class(eg:slate widget) instead of empty c++ class.

Officially tutorial told me that i should create empty c++ class. But this doesn’t works for me.

Hope this help for you .And tell me if this works.

Sorry for my careless , The correct way it delete “Saved , Intermediate" folder in you folder .Then add c++ class in your project.