# First time using UE4, can't start c++ projects. I can start Blueprint projects but when I create a c++ class it can't compile. Help please!

**URL:** <https://forums.unrealengine.com/t/first-time-using-ue4-cant-start-c-projects-i-can-start-blueprint-projects-but-when-i-create-a-c-class-it-cant-compile-help-please/392229>\
**Category:** Blueprint\
**Tags:** unreal-engine, link, compile, CPP, question\
**Created:** [April 29, 2017, 11:06am UTC](https://forums.unrealengine.com/t/first-time-using-ue4-cant-start-c-projects-i-can-start-blueprint-projects-but-when-i-create-a-c-class-it-cant-compile-help-please/392229 "2017-04-29T11:06:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_016353e6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_016353e6](https://forums.unrealengine.com/u/anonymous_user_016353e6)\
**Post date:** [April 29, 2017, 11:06am UTC](https://forums.unrealengine.com/t/first-time-using-ue4-cant-start-c-projects-i-can-start-blueprint-projects-but-when-i-create-a-c-class-it-cant-compile-help-please/392229/1 "2017-04-29T11:06:10Z")

</div>

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

Running C:/Program Files/Epic Games/UE\_4.15/Engine/Binaries/DotNET/UnrealBuildTool.exe Joustice Development Win64 -project=“C:/Unreal Projects/Joustice/Joustice.uproject” -editorrecompile -progress -NoHotReloadFromIDE  
Creating makefile for Joustice (no existing makefile)  
Performing full C++ include scan (no include cache file)  
@progress push 5%  
Parsing headers for JousticeEditor  
Running UnrealHeaderTool “C:\Unreal Projects\Joustice\Joustice.uproject” “C:\Unreal Projects\Joustice\Intermediate\Build\Win64\JousticeEditor\Development\JousticeEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed  
Reflection code generated for JousticeEditor in 4,4357914 seconds  
@progress pop  
Performing 8 actions (2 in parallel)  
[2/8] Resource ModuleVersionResource.rc.inl  
PCH.Joustice.cpp  
[3/8] Resource PCLaunch.rc  
Joustice.cpp  
JousticeGameModeBase.cpp  
Joustice.generated.cpp  
[7/8] Link UE4Editor-Joustice.dll  
[8/8] Link UE4Editor-Joustice.lib  
LINK : fatal error LNK1181: cannot open input file ‘wininet.lib’  
Creating library C:\Unreal Projects\Joustice\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-Joustice.lib and object C:\Unreal Projects\Joustice\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-Joustice.exp  
ERROR: UBT ERROR: Failed to produce item: C:\Unreal Projects\Joustice\Binaries\Win64\UE4Editor-Joustice.dll  
Total build time: 68,64 seconds (Local executor: 0,00 seconds)

---

<div class="post-metadata">

**Author:** ![AlekseyIlin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlekseyIlin](https://forums.unrealengine.com/u/AlekseyIlin)\
**Post date:** [April 30, 2017, 9:59am UTC](https://forums.unrealengine.com/t/first-time-using-ue4-cant-start-c-projects-i-can-start-blueprint-projects-but-when-i-create-a-c-class-it-cant-compile-help-please/392229/2 "2017-04-30T09:59:39Z")

</div>

What version of visual studio are you using?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_016353e6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_016353e6](https://forums.unrealengine.com/u/anonymous_user_016353e6)\
**Post date:** [April 30, 2017, 5:35pm UTC](https://forums.unrealengine.com/t/first-time-using-ue4-cant-start-c-projects-i-can-start-blueprint-projects-but-when-i-create-a-c-class-it-cant-compile-help-please/392229/3 "2017-04-30T17:35:22Z")

</div>

Community 2017

---

<div class="post-metadata">

**Author:** ![AlekseyIlin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlekseyIlin](https://forums.unrealengine.com/u/AlekseyIlin)\
**Post date:** [April 30, 2017, 5:38pm UTC](https://forums.unrealengine.com/t/first-time-using-ue4-cant-start-c-projects-i-can-start-blueprint-projects-but-when-i-create-a-c-class-it-cant-compile-help-please/392229/4 "2017-04-30T17:38:46Z")

</div>

How did you create this project?

How did you install vs 2017? Did you include c++ component?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_016353e6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_016353e6](https://forums.unrealengine.com/u/anonymous_user_016353e6)\
**Post date:** [April 30, 2017, 5:58pm UTC](https://forums.unrealengine.com/t/first-time-using-ue4-cant-start-c-projects-i-can-start-blueprint-projects-but-when-i-create-a-c-class-it-cant-compile-help-please/392229/5 "2017-04-30T17:58:15Z")

</div>

I was actually just able to fix it by (you were right) reinstalling VS and selecting the create games with c++ component.
