# I cannot create a C++ Project

**URL:** <https://forums.unrealengine.com/t/i-cannot-create-a-c-project/362909>\
**Category:** C++\
**Tags:** projects, UE4-12, unreal-engine, UE4, question, CPP\
**Created:** [July 4, 2016, 4:12pm UTC](https://forums.unrealengine.com/t/i-cannot-create-a-c-project/362909 "2016-07-04T16:12:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_63023366](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_63023366](https://forums.unrealengine.com/u/anonymous_user_63023366)\
**Post date:** [July 4, 2016, 4:12pm UTC](https://forums.unrealengine.com/t/i-cannot-create-a-c-project/362909/1 "2016-07-04T16:12:14Z")

</div>

When I try to create a c++ project i get the message

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

Running C:/Program Files (x86)/Epic Games/4.10/Engine/Binaries/DotNET/UnrealBuildTool.exe cpp\_4101 Development Win64 -project=“C:/Users/Hayden/Documents/Unreal Projects/cpp\_4101/cpp\_4101.uproject” -rocket -editorrecompile -progress -noubtmakefiles -2015  
@progress push 5%  
Parsing headers for cpp\_4101Editor  
Running UnrealHeaderTool “C:/Users/Hayden/Documents/Unreal Projects/cpp\_4101/cpp\_4101.uproject” “C:\Users\Hayden\Documents\Unreal Projects\cpp\_4101\Intermediate\Build\Win64\cpp\_4101Editor\Development\UnrealHeaderTool.manifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -rocket -installed  
Reflection code generated for cpp\_4101Editor in 4.9577675 seconds  
@progress pop  
Performing 7 actions (4 in parallel)  
[3/7] Resource ModuleVersionResource.rc.inl  
[2/7] Resource PCLaunch.rc  
PCH.cpp\_4101.h.cpp  
cpp\_4101.cpp  
cpp\_4101.generated.cpp  
cpp\_4101GameMode.cpp  
C:\Users\Hayden\Documents\Unreal Projects\cpp\_4101\Source\cpp\_4101\cpp\_4101.cpp: error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 228 does not match precompiled header  
C:\Users\Hayden\Documents\Unreal Projects\cpp\_4101\Source\cpp\_4101\cpp\_4101GameMode.cpp: error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 228 does not match precompiled header  
C:\Users\Hayden\Documents\Unreal Projects\cpp\_4101\Intermediate\Build\Win64\UE4Editor\Inc\cpp\_4101\cpp\_4101.generated.cpp: error C4599: ‘/IC:\Program Files (x86)\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: C:\Users\Hayden\Documents\Unreal Projects\cpp\_4101\Binaries\Win64\UE4Editor-cpp\_4101.dll  
Total build time: 57.75 seconds

I can create blueprint projects fine, and I have VS 15 with c++. Please help 😕

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [July 4, 2016, 4:33pm UTC](https://forums.unrealengine.com/t/i-cannot-create-a-c-project/362909/2 "2016-07-04T16:33:30Z")

</div>

> **[Compile Failed when creating Cpp project](https://forums.unrealengine.com/questions/445126/compile-failed-when-creating-cpp-project.html)**
>
> I recently updated Visual Studio to include all the Android SDK’s as I was having problems getting a VR project to work on my Nexus 6. This solved that particular problem in a blueprints project, but when creating a Cpp project I get an error and...

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_63023366](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_63023366](https://forums.unrealengine.com/u/anonymous_user_63023366)\
**Post date:** [July 4, 2016, 6:45pm UTC](https://forums.unrealengine.com/t/i-cannot-create-a-c-project/362909/3 "2016-07-04T18:45:23Z")

</div>

the github link in the accepted answer returns a 404 page

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [July 4, 2016, 6:48pm UTC](https://forums.unrealengine.com/t/i-cannot-create-a-c-project/362909/4 "2016-07-04T18:48:07Z")

</div>

You need to be signed into GitHub with an account that’s been linked to your Epic Games account.

An alternative to building the engine from source is to downgrade back to Update 2. The comments on this question give you information about how to do that: [Build Failed with VS 2015 update 3 - Programming & Scripting - Epic Developer Community Forums](https://answers.unrealengine.com/questions/435600/build-failed-with-vs-2015-update-3.html)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_63023366](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_63023366](https://forums.unrealengine.com/u/anonymous_user_63023366)\
**Post date:** [July 5, 2016, 6:29pm UTC](https://forums.unrealengine.com/t/i-cannot-create-a-c-project/362909/5 "2016-07-05T18:29:14Z")

</div>

I’m sorry to keep asking, but I’m inexperienced with this stuff. Now that I have the folder I downloaded from github, where do I put it? Thanks for all of this so far by the way!

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [July 5, 2016, 6:37pm UTC](https://forums.unrealengine.com/t/i-cannot-create-a-c-project/362909/6 "2016-07-05T18:37:28Z")

</div>

You can put it wherever you like. The following information is basically from our getting started section of the readme: [https://github.com/EpicGames/UnrealEngine](https://github.com/EpicGames/UnrealEngine)

You need to run Setup.bat to make sure you have all the third-party data, and then GenerateProjectFiles.bat to create the UE4.sln. One this is done you just open up and build the UE4 project in Development Editor, Win64.

You’ll then need to go and run {yourpath}\Engine\Binaries\Win64\UnrealVersionSelector-Win64-Shipping.exe to make sure that your custom engine is registered, and then you can change your existing project to use it by right-clicking on your .uproject file, choosing “Switch Unreal Engine version…” and picking the correct entry for your custom engine.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_63023366](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_63023366](https://forums.unrealengine.com/u/anonymous_user_63023366)\
**Post date:** [July 6, 2016, 3:09am UTC](https://forums.unrealengine.com/t/i-cannot-create-a-c-project/362909/7 "2016-07-06T03:09:55Z")

</div>

the .bat files won’t run for me, they just kind of indefinitely load 😕  
I looked around on google, and I have no idea what I’m doing wrong

---

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [August 16, 2017, 9:09am UTC](https://forums.unrealengine.com/t/i-cannot-create-a-c-project/362909/8 "2017-08-16T09:09:10Z")

</div>

All of this setup should be covered in the Official Epic Tutorial on C++ “Batter Collector”. I can’t even get past the first step of compiling the code and it’s supposed to be a beginner tutorial. Any chance you guys could update it?

Also for those who were confused, the “Downgrade to Update 2” comment is for Visual Studio not UE4. I was really confused by this.

Why is it that Update 3 is the version that installs when you choose to install from the Editor Menu?
