Hi,
I have the problem of ‘cannot find windows.h’ during compilation, about which I have found a lot of questions, but only a few answers, of which none applies to my setup, mostly because they regard VS 2013 issues.
I use: Windows 7 - UE 4.10.2 - VS2015
I can use VS 2015 on its own without problems. Also I can use Blueprint templates in UE.
But when I tried the beginners tutorial on c++ programming on the UE community site, i got the following error:
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
Test4 Development Win64
-project="C://Unreal Projects/cpp/Test4/Test4.uproject"
-rocket -editorrecompile -progress -noubtmakefiles -2015
@progress push 5%
Parsing headers for Test4Editor
Running UnrealHeaderTool "C://Unreal Projects/cpp/Test4/Test4.uproject"
"C:\\Unreal Projects\cpp\Test4\Intermediate\Build\Win64\Test4Editor\Development\UnrealHeaderTool.manifest"
-LogCmds="loginit warning, logexit warning, logdatabase error" -rocket -installed
Reflection code generated for Test4Editor in 12,2149591 seconds
@progress pop
Performing 7 actions (4 in parallel)
[3/7] Resource ModuleVersionResource.rc.inl
[2/7] Resource PCLaunch.rc
C:\Program Files (x86)\Epic Games\4.10\Engine\Source\Runtime\Launch\Resources\Windows\PCLaunch.rc(10)
fatal error RC1015: cannot open include file 'windows.h'.
PCH.Test4.h.cpp
C:\Program Files (x86)\Epic Games\4.10\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.10\Engine\Source\Runtime\Core\Public\HAL\PlatformIncludes.h(5):
fatal error C1083: Cannot open include
file: 'new': No such file or directory
-------- End Detailed Actions Stats
-----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: C:\\Unreal
Projects\cpp\Test4\Binaries\Win64\UE4Editor-Test4.dll
Total build time: 64,37 seconds
I tried reinstalling everything (VS2015, Windows SDK, UE) several times, but the problem persists. I also tried to revert to VS2013 as I a few posts of people having made it to work, but the current release of Unreal Editor requires VS2015.
Has anyone a receipt for a working setup on Windows 7
Thanks,
(Sorry for the formatting, I tried my best)