Compile error with VS2013 and UE4.5

Hello. I’m new to VS2013, and need assistance in debugging compile errors for UE4.5.
I’ve been going through archives of other’s who’ve had similar issues, but haven’t found a solution yet.

I am using VS2013 Ultimate, ( tried express desktop too )
correct DirectX Redist

I’m sure my issues are user related, but if someone wouldn’t mind assisting me in tracking them down. Thank You.

The output from a failed build goes:

30>  Cleaning UE4Editor Binaries...
30>  Building UnrealHeaderTool...
30>  Performing 30 actions (max 4 parallel jobs)
30>  [4/30] rc.exe PCLaunch.rc
30>  [3/30] rc.exe ModuleVersionResource.rc.inl
30>  PCH.Core.Core.h.cpp
30>  PCH.Shared.Core.h.cpp
30>C:\Program Files\Epic Games\UE4_k4W_Plugin\UE4_K4w_Plugin\Engine\Source\Runtime\Core\Resources\Windows\ModuleVersionResource.rc.inl(3): fatal error RC1015: cannot open include file 'windows.h'.
30>C:\Program Files\Epic Games\UE4_k4W_Plugin\UE4_K4w_Plugin\Engine\Source\Runtime/Launch/Resources/Windows/PCLaunch.rc(13): fatal error RC1015: cannot open include file 'windows.h'.
30>c:\program files\epic games\ue4_k4w_plugin\ue4_k4w_plugin\engine\source\runtime\core\public\Windows/MinWindows.h(66): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
30>c:\program files\epic games\ue4_k4w_plugin\ue4_k4w_plugin\engine\source\runtime\core\public\Windows/MinWindows.h(66): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
30>  [6/30] rc.exe ModuleVersionResource.rc.inl
30>  [7/30] rc.exe PCLaunch.rc
30>  Module.CoreUObject.1_of_4.cpp
30>  PCH.Shared.CoreUObject.h.cpp
30>C:\Program Files\Epic Games\UE4_k4W_Plugin\UE4_K4w_Plugin\Engine\Source\Runtime\Core\Resources\Windows\ModuleVersionResource.rc.inl(3): fatal error RC1015: cannot open include file 'windows.h'.
30>C:\Program Files\Epic Games\UE4_k4W_Plugin\UE4_K4w_Plugin\Engine\Source\Runtime/Launch/Resources/Windows/PCLaunch.rc(13): fatal error RC1015: cannot open include file 'windows.h'.
30>c:\program files\epic games\ue4_k4w_plugin\ue4_k4w_plugin\engine\source\runtime\core\public\Windows/MinWindows.h(66): fatal error C1083: Cannot open include file: 'windows.h': No such file or directoryc:\program files\epic games\ue4_k4w_plugin\ue4_k4w_plugin\engine\source\runtime\core\public\Windows/MinWindows.h(66) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
30>  [12/30] rc.exe ModuleVersionResource.rc.inl
30>  Module.CoreUObject.3_of_4.cpp
30>  Module.CoreUObject.2_of_4.cpp
30>  Module.CoreUObject.4_of_4.cpp
30>C:\Program Files\Epic Games\UE4_k4W_Plugin\UE4_K4w_Plugin\Engine\Source\Runtime\Core\Resources\Windows\ModuleVersionResource.rc.inl(3): fatal error RC1015: cannot open include file 'windows.h'.
30>c:\program files\epic games\ue4_k4w_plugin\ue4_k4w_plugin\engine\source\runtime\core\public\Windows/MinWindows.h(66): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
30>c:\program files\epic games\ue4_k4w_plugin\ue4_k4w_plugin\engine\source\runtime\core\public\Windows/MinWindows.h(66): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
30>c:\program files\epic games\ue4_k4w_plugin\ue4_k4w_plugin\engine\source\runtime\core\public\Windows/MinWindows.h(66): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
30>  [13/30] rc.exe PCLaunch.rc
30>  [14/30] rc.exe ModuleVersionResource.rc.inl
30>  [15/30] rc.exe PCLaunch.rc
30>  [16/30] rc.exe PCLaunch.rc
30>C:\Program Files\Epic Games\UE4_k4W_Plugin\UE4_K4w_Plugin\Engine\Source\Runtime\Core\Resources\Windows\ModuleVersionResource.rc.inl(3): fatal error RC1015: cannot open include file 'windows.h'.
30>C:\Program Files\Epic Games\UE4_k4W_Plugin\UE4_K4w_Plugin\Engine\Source\Programs\UnrealHeaderTool\Resources\PCLaunch.rc(3): fatal error RC1015: cannot open include file 'windows.h'.
30>C:\Program Files\Epic Games\UE4_k4W_Plugin\UE4_K4w_Plugin\Engine\Source\Runtime/Launch/Resources/Windows/PCLaunch.rc(13): fatal error RC1015: cannot open include file 'windows.h'.
30>C:\Program Files\Epic Games\UE4_k4W_Plugin\UE4_K4w_Plugin\Engine\Source\Runtime/Launch/Resources/Windows/PCLaunch.rc(13): fatal error RC1015: cannot open include file 'windows.h'.
30>  -------- End Detailed Actions Stats -----------------------------------------------------------
30>ERROR : UBT error : Failed to produce item: C:\Program Files\Epic Games\UE4_k4W_Plugin\UE4_K4w_Plugin\Engine\Binaries\Win64\UnrealHeaderTool-Core.dll
30>  Cumulative action seconds (8 processors): 0.00 building projects, 1.80 compiling, 0.00 creating app bundles, 0.00 generating debug info, 0.00 linking, 0.00 other
30>  UBT execution time: 2.87 seconds
30>  UnrealHeaderTool failed for target 'UE4Editor' (platform: Win64, module info: C:\Program Files\Epic Games\UE4_k4W_Plugin\UE4_K4w_Plugin\Engine\Intermediate\Build\Win64\UE4Editor\Development\UnrealHeaderTool.manifest).
30>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(43,5): error MSB3073: The command "..\..\Build\BatchFiles\Rebuild.bat UE4Editor Win64 Development" exited with code 2.
========== Rebuild All: 1 succeeded, 1 failed, 30 skipped ==========

Thanks again,

Where did you install Visual Studio? Is it somewhere custom? Your compiler can’t find Windows.h which means it either isn’t there, or it isn’t where it’s looking. Have you checked your include directory settings for VS?

Hello @anonymous_user_d024871c, Thanks for your reply.

As far as I know, I’ve installed everything default. VS13 lives:
C:\Program Files (x86)\Microsoft Visual Studio 12.0

Yeah, I agree, doesn’t appear as if it can find Windows.h. I’m just not exactly sure how to rectify it. ( I’ve tried many of the solutions presented by others who have had issues similar, but none seem to solve mine… )

As for the the include directory settings for VS, are you speaking of the inherent parent settings? If not, can you be more specific, I’m not familiar with Visual Studio yet…

Just double checked…
The VC++ Directories
Include Directories are: ( inherit from parent or project defaults ) $(VC_IncludePath);$(WindowsSDK_IncludePath);

Reference Directories are: ( inherit from parent or project defaults ) $(VC_ReferencesPath_x64);

Library Directories: ( inherit from parent or project defaults ) $(VC_LibraryPath_x64);$(WindowsSDK_LibraryPath_x64);

I think that was what you were asking for?

Yes, my Exec Dir is: $(VC_ExecutablePath_x64);$(WindowsSDK_ExecutablePath);$(VS_ExecutablePath);$(MSBuild_ExecutablePath);$(FxCopDir);$(PATH);

NMAKE Include Search Path: An incredibly long list: Looks like source code includes. At the bottom is:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\ATLMFC\INCLUDE

D:\Dev\Windows81SDK\include\shared

D:\Dev\Windows81SDK\include\um

D:\Dev\Windows81SDK\include\winrt

My Solution Platform is: Active(Development_Editor)

Platform is : Active(x64)

This is what I have in my Exec Directories:

$(VC_ExecutablePath_x64)
$(WindowsSDK_ExecutablePath)
$(VS_ExecutablePath)
$(MSBuild_ExecutablePath)
$(FxCopDir)
$(PATH)

What is in your NMAKE Include Search Path?
What are your Solution Platform and Config? (For example, my current settings whilst debugging is: Win64 and Debug Game Editor)

Hi ,

Errors C1083 and RC1015 often come together, though C1083 usually references 'new' instead of 'windows.h'. Take a look at this page to see if the tips for these two error messages are helpful.