虚幻引擎4致命错误C1083

时间:2017-09-17 14:44:31

标签: c++ unreal-engine4

我试图生成一个新的UE4项目(C ++ / Third Person),但我总是收到以下错误

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

Running C:/Program Files/Epic Games/UE_4.17/Engine/Binaries/DotNET/UnrealBuildTool.exe AnotherWorld Development Win64 -project="C:/Users/Paul/Documents/Unreal Projects/AnotherWorld/AnotherWorld.uproject" -editorrecompile -progress -NoHotReloadFromIDE
Creating makefile for AnotherWorld (no existing makefile)
Performing full C++ include scan (no include cache file)
@progress push 5%
Parsing headers for AnotherWorldEditor
Running UnrealHeaderTool "C:\Users\Paul\Documents\Unreal  Projects\AnotherWorld\AnotherWorld.uproject" "C:\Users\Paul\Documents\Unreal Projects\AnotherWorld\Intermediate\Build\Win64\AnotherWorldEditor\Development\AnotherWorldEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
Reflection code generated for AnotherWorldEditor in 18,9575823 seconds
@progress pop
Performing 11 actions (2 in parallel)
[2/11] Resource ModuleVersionResource.rc.inl
[3/11] Resource PCLaunch.rc
SharedPCH.Engine.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\INCLUDE\cstddef(5): fatal error C1083: file (Include) could not be opened: "stddef.h": No such file or directory
ERROR: UBT ERROR: Failed to produce item: C:\Users\Paul\Documents\Unreal  Projects\AnotherWorld\Binaries\Win64\UE4Editor-AnotherWorld.dll
Total build time: 42,13 seconds (Local executor: 0,00 seconds)

如何解决此错误?

1 个答案:

答案 0 :(得分:1)

我知道这是一个古老的问题,但我想我会在任何偶然发现它的人的答案中投入。

您可能遇到了同样的问题,也就是说,我是missing the UCRT SDK.当您从Visual Studio安装程序修改VS安装时,请确保安装Windows Universal CRT SDK以及哪个版本您正在使用的Windows SDK。在我的情况下,我只有Windows 8.1 SDK组件,并收到相同的错误。

安装Windows Universal CRT SDK后,尝试使用相同的设置制作新项目。您的旧项目不会构建我认为解决方案属性的问题,不包括新的ucrt包含路径。