不能包含"vcruntime_new_debug.h"

Cannot include "vcruntime_new_debug.h"

本文关键字:debug new vcruntime 包含 不能      更新时间:2023-10-16

我正在尝试编译UE4 C++项目,但遇到此错误

Running D:/UE_4.24/Engine/Binaries/DotNET/UnrealBuildTool.exe Development Win64 -Project="F:/Unreal/MyProject11/MyProject11.uproject" -TargetType=Editor -Progress -NoHotReloadFromIDE
Creating makefile for MyProject11Editor (no existing makefile)
@progress push 5%
Parsing headers for MyProject11Editor
Running UnrealHeaderTool "F:UnrealMyProject11MyProject11.uproject" "F:UnrealMyProject11IntermediateBuildWin64MyProject11EditorDevelopmentMyProject11Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
Reflection code generated for MyProject11Editor in 12,6746457 seconds
@progress pop
Building MyProject11Editor...
Using Visual Studio 2017 14.16.27034 toolchain (D:ProgramData????? ?????VCToolsMSVC14.16.27023) and Windows 10.0.17763.0 SDK (C:Program Files (x86)Windows Kits10).
Building 11 actions with 8 processes...
@progress 'Compiling C++ source code...' 0%
@progress 'Compiling C++ source code...' 9%
[1/11] Default.rc2
@progress 'Compiling C++ source code...' 18%
[2/11] SharedPCH.Engine.ShadowErrors.cpp
C:Program Files (x86)Windows Kits10include10.0.17763.0ucrtnew.h(13): fatal error C1083: Cannot open include file: 'vcruntime_new_debug.h': No such file or directory

我不知道什么是vcruntime_new_debug.h。 我更新了所有包,如.NET框架或Visual C++ Redistributable。

我也找不到它。 所以我只是从Github下载头文件。 您可能还缺少其他头文件,因此最好复制整个 vcruntime *