When I create a C+±based UE project using the Unreal Project Browser, I receive a compilation error prompt, and the log is as follows:
Running C:/Program Files/Epic Games/UE_5.6/Engine/Build/BatchFiles/Build.bat Development Win64 -Project="C:/Users/AIVE-SJB-2025/Documents/project/ue5/cpp/test/test.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Using bundled DotNet SDK version: 8.0.300 win-x64
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" Development Win64 -Project="C:/Users/AIVE-SJB-2025/Documents/project/ue5/cpp/test/test.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\AIVE-SJB-2025\AppData\Local\UnrealBuildTool\Log.txt
Creating makefile for testEditor (no existing makefile)
@progress push 5%
Parsing headers for testEditor
Running Internal UnrealHeaderTool C:\Users\AIVE-SJB-2025\Documents\project\ue5\cpp\test\test.uproject C:\Users\AIVE-SJB-2025\Documents\project\ue5\cpp\test\Intermediate\Build\Win64\testEditor\Development\testEditor.uhtmanifest -WarningsAsErrors -installed
Total of 0 written
Reflection code generated for testEditor in 2.3600822 seconds
@progress pop
Building testEditor...
Using Visual Studio 2022 14.38.33145 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).
Determining max actions to execute in parallel (8 physical cores, 16 logical cores)
Executing up to 8 processes, one per physical core
Requested 1.5 GB memory per action, 10.28 GB available: limiting max parallel actions to 6
Using Unreal Build Accelerator local executor to run 7 action(s)
Storage capacity 40Gb
---- Starting trace: 250715_134553 ----
UbaServer - Listening on 0.0.0.0:1345
------ Building 7 action(s) started ------
[1/7] Resource Default.rc2
Resource Default.rc2: Exited with error code -1 . The build will fail.
Resource Default.rc2: WorkingDirectory C:\Program Files\Epic Games\UE_5.6\Engine\Source
Resource Default.rc2: C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\rc.exe /nologo /D_WIN64 /l 0x409 /I "." /I "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/INCLUDE" /I "C:/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/ucrt" /I "C:/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/shared" /I "C:/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/um" /I "C:/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/winrt" /DIS_PROGRAM=0 /DUE_EDITOR=1 /DUSE_SHADER_COMPILER_WORKER_TRACE=0 /DUE_REFERENCE_COLLECTOR_REQUIRE_OBJECTPTR=1 /DWITH_VERSE_VM=0 /DENABLE_PGO_PROFILE=0 /DUSE_VORBIS_FOR_STREAMING=1 /DUSE_XMA2_FOR_STREAMING=1 /DWITH_DEV_AUTOMATION_TESTS=1 /DWITH_PERF_AUTOMATION_TESTS=1 /DWITH_LOW_LEVEL_TESTS=0 /DEXPLICIT_TESTS_TARGET=0 /DWITH_TESTS=1 /DUNICODE /D_UNICODE /D__UNREAL__ /DIS_MONOLITHIC=0 /DIS_MERGEDMODULES=0 /DWITH_ENGINE=1 /DWITH_UNREAL_DEVELOPER_TOOLS=1 /DWITH_UNREAL_TARGET_DEVELOPER_TOOLS=1 /DWITH_APPLICATION_CORE=1 /DWITH_COREUOBJECT=1 /DUE_TRACE_ENABLED=1 /DUE_TRACE_FORCE_ENABLED=0 /DWITH_VERSE=1 /DUE_USE_VERSE_PATHS=1 /DWITH_VERSE_BPVM=1 /DUSE_STATS_WITHOUT_ENGINE=0 /DWITH_PLUGIN_SUPPORT=0 /DWITH_ACCESSIBILITY=1 /DWITH_PERFCOUNTERS=1 /DWITH_FIXED_TIME_STEP_SUPPORT=1 /DUSE_LOGGING_IN_SHIPPING=0 /DALLOW_CONSOLE_IN_SHIPPING=0 /DALLOW_PROFILEGPU_IN_TEST=0 /DALLOW_PROFILEGPU_IN_SHIPPING=0 /DWITH_LOGGING_TO_MEMORY=0 /DUSE_CACHE_FREED_OS_ALLOCS=1 /DUSE_CHECKS_IN_SHIPPING=0 /DUSE_UTF8_TCHARS=0 /DUSE_ESTIMATED_UTCNOW=0 /DUE_ALLOW_EXEC_COMMANDS_IN_SHIPPING=1 /DWITH_EDITOR=1 /DWITH_IOSTORE_IN_EDITOR=1 /DWITH_CLIENT_CODE=1 /DWITH_SERVER_CODE=1 /DUE_FNAME_OUTLINE_NUMBER=0 /DWITH_PUSH_MODEL=1 /DWITH_CEF3=1 /DWITH_LIVE_CODING=1 /DWITH_CPP_MODULES=0 /DWITH_CPP_COROUTINES=0 /DWITH_PROCESS_PRIORITY_CONTROL=0 /DUBT_MODULE_MANIFEST="UnrealEditor.modules" /DUBT_MODULE_MANIFEST_DEBUGGAME="UnrealEditor-Win64-DebugGame.modules" /DUBT_COMPILED_PLATFORM=Win64 /DUBT_COMPILED_TARGET=Editor /DUE_APP_NAME="UnrealEditor" /DUE_WARNINGS_AS_ERRORS=0 /DFORCE_ANSI_ALLOCATOR=0 /DUSE_MALLOC_BINNED2=1 /DUSE_MALLOC_BINNED3=0 /DNDIS_MINIPORT_MAJOR_VERSION=0 /DWIN32=1 /D_WIN32_WINNT=0x0601 /DWINVER=0x0601 /DPLATFORM_WINDOWS=1 /DPLATFORM_MICROSOFT=1 /DOVERRIDE_PLATFORM_HEADER_NAME=Windows /DRHI_RAYTRACING=1 /DWINDOWS_MAX_NUM_TLS_SLOTS=2048 /DWINDOWS_MAX_NUM_THREADS_WITH_TLS_SLOTS=512 /DNDEBUG=1 /DUE_BUILD_DEVELOPMENT=1 /DORIGINAL_FILE_NAME="UnrealEditor-test.dll" /DBUILD_ICON_FILE_NAME="\"..\\Build\\Windows\\Resources\\Default.ico\"" /DPROJECT_COPYRIGHT_STRING="Fill out your copyright notice in the Description page of Project Settings." /DPROJECT_PRODUCT_IDENTIFIER=test /fo "C:/Users/AIVE-SJB-2025/Documents/project/ue5/cpp/test/Intermediate/Build/Win64/x64/UnrealEditor/Development/test/Default.rc2.res" "../Build/Windows/Resources/Default.rc2"
Compile [x64] SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.cpp: Exited with error code -1 . The build will fail.
Compile [x64] SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.cpp: WorkingDirectory C:\Program Files\Epic Games\UE_5.6\Engine\Source
Compile [x64] SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.cpp: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe @"C:/Users/AIVE-SJB-2025/Documents/project/ue5/cpp/test/Intermediate/Build/Win64/x64/testEditor/Development/UnrealEd/SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.h.obj.rsp"
[2/7] Compile [x64] SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.cpp
Trace written to file C:/Users/AIVE-SJB-2025/AppData/Local/UnrealBuildTool/Log.uba with size 1.8kb
Total time in Unreal Build Accelerator local executor: 4.05 seconds
Result: Failed (OtherCompilationError)
Total execution time: 10.88 seconds
Has anyone encountered this problem before? What could be the reason? What should I do?