# UE 5.6 Compile error - Resource Default.rc2: Exited with error code -1

**URL:** <https://forums.unrealengine.com/t/ue-5-6-compile-error-resource-default-rc2-exited-with-error-code-1/2541135>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [June 4, 2025, 5:34pm UTC](https://forums.unrealengine.com/t/ue-5-6-compile-error-resource-default-rc2-exited-with-error-code-1/2541135 "2025-06-04T17:34:40Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![chrissun14](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chrissun14](https://forums.unrealengine.com/u/chrissun14)\
**Post date:** [June 9, 2025, 2:45pm UTC](https://forums.unrealengine.com/t/ue-5-6-compile-error-resource-default-rc2-exited-with-error-code-1/2541135/3 "2025-06-09T14:45:43Z")

</div>

Thanks for your reply. I’ve been trying for the last several days and following the instructions and link you provided but the issue still remains.

No matter what, I get the below error. So far I’ve tried the following:

1. reinstalled UE 5.6
2. reinstalled VS 2022 with latest versions and components using instructions in the link.
3. deleted and then regenerated the code files for my project.
4. created new blank projects and added a new C++ class with nothing in it to test.

All this time, I still remain able to compile my 5.5 projects without issue but only 5.6 won’t compile. Very strange and I can’t tell what component may be causing this.

> 27\>------ Building 9 action(s) started ------  
> 27\>[1/9] Resource Default.rc2  
> 27\> Resource Default.rc2: Exited with error code -1 . The build will fail.  
> 27\> Resource Default.rc2: WorkingDirectory D:\Program Files\Epic Games\UE\_5.6\Engine\Source  
> 27\> 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 “D:/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-RPG05.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=RPG05 /fo “F:/Unreal Projects/RPG05/Intermediate/Build/Win64/x64/UnrealEditor/Development/RPG05/Default.rc2.res” “../Build/Windows/Resources/Default.rc2”  
> 27\> Compile [x64] SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.InclOrderUnreal5\_3.cpp: Exited with error code -1 . The build will fail.  
> 27\> Compile [x64] SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.InclOrderUnreal5\_3.cpp: WorkingDirectory D:\Program Files\Epic Games\UE\_5.6\Engine\Source  
> 27\> Compile [x64] SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.InclOrderUnreal5\_3.cpp: D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe @“F:/Unreal Projects/RPG05/Intermediate/Build/Win64/x64/RPG05Editor/Development/UnrealEd/SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.InclOrderUnreal5\_3.h.obj.rsp”  
> 27\>[2/9] Compile [x64] SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.InclOrderUnreal5\_3.cpp  
> 27\>Trace written to file C:/Users/Chris/AppData/Local/UnrealBuildTool/Log.uba with size 2.2kb

---

_[View the full topic](https://forums.unrealengine.com/t/ue-5-6-compile-error-resource-default-rc2-exited-with-error-code-1/2541135)._
