Complie Failure

This is my 1st time running the C++ compile. I’m not sure if I did something wrong nor what to do next. Please help. I get this error message:

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

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

Right click on the Uproject file and select the option, Generate visual studio files. Then open up the projects visual studio sln file and try and build it from there. When you debug it look at your outputs window and then paste the result here for clearer error messages

1>------ Build started: Project: Section_1, Configuration: Development_Editor x64 ------
1> Performing 4 actions (4 in parallel)
1> Section_1.generated.cpp
1> Section_1GameMode.cpp
1> Section_1.cpp
1>F:\Tremaine\Documents\Unreal Projects\Section_1\Source\Section_1\Section_1GameMode.cpp : error C4599: ‘/IF:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 228 does not match precompiled header
1>F:\Tremaine\Documents\Unreal Projects\Section_1\Source\Section_1\Section_1.cpp : error C4599: ‘/IF:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 228 does not match precompiled header
1>F:\Tremaine\Documents\Unreal Projects\Section_1\Intermediate\Build\Win64\UE4Editor\Inc\Section_1\Section_1.generated.cpp : error C4599: ‘/IF:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 228 does not match precompiled header
1> -------- End Detailed Actions Stats -----------------------------------------------------------
1>ERROR : UBT error : Failed to produce item: F:\Tremaine\Documents\Unreal Projects\Section_1\Binaries\Win64\UE4Editor-Section_1.dll
1> Total build time: 2.31 seconds
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3073: The command ““F:\Program Files (x86)\Epic Games\4.10\Engine\Build\BatchFiles\Build.bat” Section_1Editor Win64 Development “F:\Tremaine\Documents\Unreal Projects\Section_1\Section_1.uproject” -rocket -waitmutex -2015” exited with code -1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Looking up error C4599, I go this as the first result: Unreal Error "This project could not be compiled. Would you like to open it in Visual Studio?" - C++ - Epic Developer Community Forums

This usually works to resolve Visual
Studio weirdness:

  1. Close UE4 Editor
  2. Delete everything in /Intermediate/ and /Saved/
  3. Open UE4 Editor
  4. File → Refresh Visual Studio Project
  5. Open Visual Studio project, attempt to compile

Also in the future, put your compiling errors in a code block, it makes them more parse able for us.

I cannot Refresh the Visual Studio Project because I cannot open the editor for the project. I get a message that reads:

"The following modules are missing or build using a different engine version:

UE4Editor-Section_1.dll

Would you like to rebuild them now?"

It gives the options for Yes or No.

When I click yes. It starts to rebuild and and then a new message pops up that reads:

Section_1 could not be compiled. Try rebuilding from the source manually.

Hmm, if it’s not a project you put any work into, I would suggest starting from scratch. Make sure that you installed C++ components with your Visual Studio install as well.