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

Hello everyone,

sorry if this has been answered already, but i didn’t find anything helping me so I am now posting this thread.

Now getting to the problem:
I start Unreal Engine and want to create a new C++ project with basic code. The selected Options are 1) Desktop/Console, 2) Maximum Quality and 3) With Starter Content.
When I press the Create Project - button is starts building etc. until i get the following error.

Running C:/Program Files (x86)/Epic Games/4.8/Engine/Binaries/DotNET/UnrealBuildTool.exe TestCodeProject Development Win64 -project=“C:/Users/Linus/Documents/Unreal Projects/TestCodeProject/TestCodeProject.uproject” -rocket -editorrecompile -progress -noubtmakefiles
Parsing headers for TestCodeProjectEditor
Reflection code generated for TestCodeProjectEditor
Performing 7 actions (4 in parallel)
[2/7] Resource ModuleVersionResource.rc.inl
[3/7] Resource PCLaunch.rc
PCH.TestCodeProject.h.cpp
C:\Program Files (x86)\Epic Games\4.8\Engine\Source\Runtime\Core\Resources\Windows\ModuleVersionResource.rc.inl(3) : fatal error RC1015: cannot open include file ‘windows.h’.
C:\Program Files (x86)\Epic Games\4.8\Engine\Source\Runtime\Launch\Resources\Windows\PCLaunch.rc(10) : fatal error RC1015: cannot open include file ‘windows.h’.
C:\Program Files (x86)\Epic Games\4.8\Engine\Source\Runtime\Core\Public\HAL\PlatformIncludes.h(5) : fatal error C1083: Datei (Include) kann nicht ge?ffnet werden: “new”: No such file or directory
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: C:\Users\Linus\Documents\Unreal Projects\TestCodeProject\Binaries\Win64\UE4Editor-TestCodeProject.dll
Total build time: 27,98 seconds

Since I’m still quite new with both C++ and the Unreal Engine I have no idea how to solve it.

Thanks in advance! :smiley:

Hello LinusSee,

It seems as though you may be missing the Windows SDK as the error is stating “fatal error RC1015: cannot open include file ‘windows.h’.”

Please refer to the following page for more information about this error code: A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums

Hope this helps!,

i have the same issue please help, new to Unreal engine
:frowning:

have unreal engine 4.11.1 and VS 2015 Community edition

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

Running D:/UnrealEngine/Epic Games/4.11/Engine/Binaries/DotNET/UnrealBuildTool.exe Clock Development Win64 -project=“D:/UnrealEngine/UnrealProj/Clock/Clock.uproject” -editorrecompile -progress -noubtmakefiles -NoHotReloadFromIDE -2015
@progress push 5%
Parsing headers for ClockEditor
Running UnrealHeaderTool “D:\UnrealEngine\UnrealProj\Clock\Clock.uproject” “D:\UnrealEngine\UnrealProj\Clock\Intermediate\Build\Win64\ClockEditor\Development\UnrealHeaderTool.manifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
Reflection code generated for ClockEditor in 2.6714845 seconds
@progress pop
Performing 7 actions (4 in parallel)
[2/7] Resource PCLaunch.rc
[3/7] Resource ModuleVersionResource.rc.inl
PCH.Clock.h.cpp
ClockGameMode.cpp
Clock.generated.cpp
Clock.cpp
D:\UnrealEngine\UnrealProj\Clock\Source\Clock\ClockGameMode.cpp: error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 248 does not match precompiled header
D:\UnrealEngine\UnrealProj\Clock\Intermediate\Build\Win64\UE4Editor\Inc\Clock\Clock.generated.cpp: error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 248 does not match precompiled header
D:\UnrealEngine\UnrealProj\Clock\Source\Clock\Clock.cpp: error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 248 does not match precompiled header
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: D:\UnrealEngine\UnrealProj\Clock\Binaries\Win64\UE4Editor-Clock.dll
Total build time: 30.70 seconds

I have similar sort of problem , please help new to Unreal Engine :confused:

Unreal engine 4.11.2 and VS 2015 this error shows up creating new project “Basic Code”.

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

Running D:/UnrealEngine/Epic Games/4.11/Engine/Binaries/DotNET/UnrealBuildTool.exe cc Development Win64 -project=“D:/UnrealEngine/UnrealProj/cc/cc.uproject” -editorrecompile -progress -noubtmakefiles -NoHotReloadFromIDE -2015 @progress push 5%
Parsing headers for ccEditor
Running UnrealHeaderTool “D:\UnrealEngine\UnrealProj\cc\cc.uproject” “D:\UnrealEngine\UnrealProj\cc\Intermediate\Build\Win64\ccEditor\Development\UnrealHeaderTool.manifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
Reflection code generated for ccEditor in 2.9653221 seconds @progress pop
Performing 7 actions (4 in parallel)
[2/7] Resource PCLaunch.rc
[3/7] Resource ModuleVersionResource.rc.inl
PCH.cc.h.cpp
cc.generated.cpp
ccGameMode.cpp
cc.cpp
D:\UnrealEngine\UnrealProj\cc\Intermediate\Build\Win64\UE4Editor\Inc\cc\cc.generated.cpp: error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 248 does not match precompiled header
D:\UnrealEngine\UnrealProj\cc\Source\cc\ccGameMode.cpp: error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 248 does not match precompiled header
D:\UnrealEngine\UnrealProj\cc\Source\cc\cc.cpp: error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 248 does not match precompiled header
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: D:\UnrealEngine\UnrealProj\cc\Binaries\Win64\UE4Editor-cc.dll
Total build time: 31.74 seconds

Thanks

I have kinda the same error:

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

Running C:/Program Files/Epic Games/UE_4.11/Engine/Binaries/DotNET/UnrealBuildTool.exe MCUE Development Win64 -project=“C:/Users//Documents/Unreal Projects/MCUE/MCUE.uproject” -editorrecompile -progress -noubtmakefiles -NoHotReloadFromIDE -2015 @progress push 5%
Parsing headers for MCUEEditor
Running UnrealHeaderTool “C:\Users\Documents\Unreal Projects\MCUE\MCUE.uproject” “C:\Users\Documents\Unreal Projects\MCUE\Intermediate\Build\Win64\MCUEEditor\Development\UnrealHeaderTool.manifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
Reflection code generated for MCUEEditor in 4,8131043 seconds @progress pop
Performing 10 actions (2 in parallel)
[2/10] Resource PCLaunch.rc
PCH.MCUE.h.cpp
[3/10] Resource ModuleVersionResource.rc.inl
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\crtdefs.h(10): fatal error C1083: Cannot open include file: ‘corecrt.h’: No such file or directory
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: C:\Users\Documents\Unreal Projects\MCUE\Binaries\Win64\UE4Editor-MCUE.dll
Total build time: 11,90 seconds

Help !

I encountered this issue when first running the Programming Quick Start Tutorial with Visual Studio 2015 Pro Installed.
Deleting this project and creating a new one fixed the issue (I didn’t encounter it again).

I’ve encountered the same problem.

In my case, reinstallation of UE4 fixed it.

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

Running C:/Program Files/Epic Games/UE_4.11/Engine/Binaries/DotNET/UnrealBuildTool.exe MCUE Development Win64 -project=“C:/Users/Raisuli Kareem Nixon/Documents/Unreal Projects/MCUE/MCUE.uproject” -editorrecompile -progress -noubtmakefiles -NoHotReloadFromIDE -2015
@progress push 5%
Parsing headers for MCUEEditor
Running UnrealHeaderTool “C:\Users\Raisuli Kareem Nixon\Documents\Unreal Projects\MCUE\MCUE.uproject” “C:\Users\Raisuli Kareem Nixon\Documents\Unreal Projects\MCUE\Intermediate\Build\Win64\MCUEEditor\Development\UnrealHeaderTool.manifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
Reflection code generated for MCUEEditor in 2.2497352 seconds
@progress pop
Performing 10 actions (8 in parallel)
[3/10] Resource ModuleVersionResource.rc.inl
[2/10] Resource PCLaunch.rc
PCH.MCUE.h.cpp
MCUEHUD.cpp
MCUE.generated.cpp
MCUECharacter.cpp
MCUEProjectile.cpp
C:\Users\Raisuli Kareem Nixon\Documents\Unreal Projects\MCUE\Intermediate\Build\Win64\UE4Editor\Inc\MCUE\MCUE.generated.cpp: error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 248 does not match precompiled headerC:\Users\Raisuli Kareem Nixon\Documents\Unreal Projects\MCUE\Source\MCUE\MCUEHUD.cpp: error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 248 does not match precompiled header

C:\Users\Raisuli Kareem Nixon\Documents\Unreal Projects\MCUE\Source\MCUE\MCUECharacter.cpp: error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 248 does not match precompiled header
MCUEGameMode.cpp
C:\Users\Raisuli Kareem Nixon\Documents\Unreal Projects\MCUE\Source\MCUE\MCUEProjectile.cpp: error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 248 does not match precompiled header
MCUE.cpp
C:\Users\Raisuli Kareem Nixon\Documents\Unreal Projects\MCUE\Source\MCUE\MCUEGameMode.cpp: error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 248 does not match precompiled header
C:\Users\Raisuli Kareem Nixon\Documents\Unreal Projects\MCUE\Source\MCUE\MCUE.cpp: error C4599: ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 248 does not match precompiled header
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: C:\Users\Raisuli Kareem Nixon\Documents\Unreal Projects\MCUE\Binaries\Win64\UE4Editor-MCUE.dll
Total build time: 22.79 seconds