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

**URL:** <https://forums.unrealengine.com/t/when-i-start-ue4-with-c-it-gives-me-compile-failed-every-time/362524>\
**Category:** C++\
**Tags:** unreal-engine, bug-report, UE4, CPP, question\
**Created:** [June 30, 2016, 12:56pm UTC](https://forums.unrealengine.com/t/when-i-start-ue4-with-c-it-gives-me-compile-failed-every-time/362524 "2016-06-30T12:56:01Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roberte5466](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roberte5466](https://forums.unrealengine.com/u/Roberte5466)\
**Post date:** [June 30, 2016, 12:56pm UTC](https://forums.unrealengine.com/t/when-i-start-ue4-with-c-it-gives-me-compile-failed-every-time/362524/1 "2016-06-30T12:56:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [June 30, 2016, 1:12pm UTC](https://forums.unrealengine.com/t/when-i-start-ue4-with-c-it-gives-me-compile-failed-every-time/362524/2 "2016-06-30T13:12:36Z")

</div>

Hello,

Are you using Update 3 for Visual Studio 2015?

---

<div class="post-metadata">

**Author:** ![Roberte5466](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roberte5466](https://forums.unrealengine.com/u/Roberte5466)\
**Post date:** [June 30, 2016, 2:29pm UTC](https://forums.unrealengine.com/t/when-i-start-ue4-with-c-it-gives-me-compile-failed-every-time/362524/3 "2016-06-30T14:29:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [June 30, 2016, 2:31pm UTC](https://forums.unrealengine.com/t/when-i-start-ue4-with-c-it-gives-me-compile-failed-every-time/362524/4 "2016-06-30T14:31:06Z")

</div>

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](https://github.com/EpicGames/UnrealEngine/commit/f011bacaaf292ebdc8f33fdeb78bb14d30eaa6bc)

Have a great day

---

<div class="post-metadata">

**Author:** ![Roberte5466](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roberte5466](https://forums.unrealengine.com/u/Roberte5466)\
**Post date:** [June 30, 2016, 2:33pm UTC](https://forums.unrealengine.com/t/when-i-start-ue4-with-c-it-gives-me-compile-failed-every-time/362524/5 "2016-06-30T14:33:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Roberte5466](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roberte5466](https://forums.unrealengine.com/u/Roberte5466)\
**Post date:** [June 30, 2016, 2:38pm UTC](https://forums.unrealengine.com/t/when-i-start-ue4-with-c-it-gives-me-compile-failed-every-time/362524/6 "2016-06-30T14:38:40Z")

</div>

[https://github.com/EpicGames/UnrealEngine/commit/f011bacaaf292ebdc8f33fdeb78bb14d30eaa6bc](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…

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [June 30, 2016, 2:44pm UTC](https://forums.unrealengine.com/t/when-i-start-ue4-with-c-it-gives-me-compile-failed-every-time/362524/7 "2016-06-30T14:44:10Z")

</div>

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

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

---

<div class="post-metadata">

**Author:** ![Roberte5466](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roberte5466](https://forums.unrealengine.com/u/Roberte5466)\
**Post date:** [June 30, 2016, 3:07pm UTC](https://forums.unrealengine.com/t/when-i-start-ue4-with-c-it-gives-me-compile-failed-every-time/362524/8 "2016-06-30T15:07:23Z")

</div>

how do i go to my account to link them

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [June 30, 2016, 3:08pm UTC](https://forums.unrealengine.com/t/when-i-start-ue4-with-c-it-gives-me-compile-failed-every-time/362524/9 "2016-06-30T15:08:03Z")

</div>

The link I provided will help you get set up.

---

<div class="post-metadata">

**Author:** ![Roberte5466](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roberte5466](https://forums.unrealengine.com/u/Roberte5466)\
**Post date:** [June 30, 2016, 3:26pm UTC](https://forums.unrealengine.com/t/when-i-start-ue4-with-c-it-gives-me-compile-failed-every-time/362524/10 "2016-06-30T15:26:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [June 30, 2016, 3:29pm UTC](https://forums.unrealengine.com/t/when-i-start-ue4-with-c-it-gives-me-compile-failed-every-time/362524/11 "2016-06-30T15:29:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Roberte5466](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roberte5466](https://forums.unrealengine.com/u/Roberte5466)\
**Post date:** [June 30, 2016, 7:02pm UTC](https://forums.unrealengine.com/t/when-i-start-ue4-with-c-it-gives-me-compile-failed-every-time/362524/12 "2016-06-30T19:02:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Roberte5466](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roberte5466](https://forums.unrealengine.com/u/Roberte5466)\
**Post date:** [June 30, 2016, 7:24pm UTC](https://forums.unrealengine.com/t/when-i-start-ue4-with-c-it-gives-me-compile-failed-every-time/362524/13 "2016-06-30T19:24:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Roberte5466](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roberte5466](https://forums.unrealengine.com/u/Roberte5466)\
**Post date:** [June 30, 2016, 9:11pm UTC](https://forums.unrealengine.com/t/when-i-start-ue4-with-c-it-gives-me-compile-failed-every-time/362524/14 "2016-06-30T21:11:38Z")

</div>

im just gonna try another engine

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [July 1, 2016, 12:40pm UTC](https://forums.unrealengine.com/t/when-i-start-ue4-with-c-it-gives-me-compile-failed-every-time/362524/15 "2016-07-01T12:40:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Roberte5466](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roberte5466](https://forums.unrealengine.com/u/Roberte5466)\
**Post date:** [July 4, 2016, 10:28am UTC](https://forums.unrealengine.com/t/when-i-start-ue4-with-c-it-gives-me-compile-failed-every-time/362524/16 "2016-07-04T10:28:59Z")

</div>

> **[How do i make a player with FFP TTP Plz Help IN BLUEPRINT](https://forums.unrealengine.com/questions/445776/how-do-i-make-a-player-with-ffp-ttp-plz-help-in-bl.html)**
>
> HEY I WANTED TO MAKE A FPS MULTIPLAYER GAME BUT DONT KNOW HOW TO MAKE FFP AND TTP AND HOW ME ON THE FIRST PERSON JUST CAN SEE FFP AND THE OTHER PLAYERS CAN SEE TTP ALSO IM A BEGGINER AND I REALLY WOULD LIKE YOU COULD RECOMEND SOME BLUEPRINT GOOD...

---

<div class="post-metadata">

**Author:** ![youthnick](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@youthnick](https://forums.unrealengine.com/u/youthnick)\
**Post date:** [July 19, 2016, 9:09am UTC](https://forums.unrealengine.com/t/when-i-start-ue4-with-c-it-gives-me-compile-failed-every-time/362524/17 "2016-07-19T09:09:58Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![youthnick](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@youthnick](https://forums.unrealengine.com/u/youthnick)\
**Post date:** [July 20, 2016, 7:32am UTC](https://forums.unrealengine.com/t/when-i-start-ue4-with-c-it-gives-me-compile-failed-every-time/362524/18 "2016-07-20T07:32:28Z")

</div>

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