DebugGame Editor Link Errors

So all of a sudden I started to have this issue with linker errors. The project was fine, working and packing no problem. I used DebugGame Editor config.

I added new actor component class in C++ and my solution stopped building even though I reverted adding new class. The thing is: it works no problem in Development Editor config, but DebugGame Editor now gives me these errors even though I used it before, it is very strange and looks like a bug.

12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “wchar_t const * const OutputDeviceColor::COLOR_GRAY” (?COLOR_GRAY@OutputDeviceColor@@3QEB_WEB)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FDeprecateSlateVector2D const CoreStyleConstants::Icon5x16” (?Icon5x16@CoreStyleConstants@@3UFDeprecateSlateVector2D@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FDeprecateSlateVector2D const CoreStyleConstants::Icon6x8” (?Icon6x8@CoreStyleConstants@@3UFDeprecateSlateVector2D@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FDeprecateSlateVector2D const CoreStyleConstants::Icon8x4” (?Icon8x4@CoreStyleConstants@@3UFDeprecateSlateVector2D@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FDeprecateSlateVector2D const CoreStyleConstants::Icon16x4” (?Icon16x4@CoreStyleConstants@@3UFDeprecateSlateVector2D@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FDeprecateSlateVector2D const CoreStyleConstants::Icon8x8” (?Icon8x8@CoreStyleConstants@@3UFDeprecateSlateVector2D@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FDeprecateSlateVector2D const CoreStyleConstants::Icon10x10” (?Icon10x10@CoreStyleConstants@@3UFDeprecateSlateVector2D@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FDeprecateSlateVector2D const CoreStyleConstants::Icon12x12” (?Icon12x12@CoreStyleConstants@@3UFDeprecateSlateVector2D@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FDeprecateSlateVector2D const CoreStyleConstants::Icon12x16” (?Icon12x16@CoreStyleConstants@@3UFDeprecateSlateVector2D@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FDeprecateSlateVector2D const CoreStyleConstants::Icon14x14” (?Icon14x14@CoreStyleConstants@@3UFDeprecateSlateVector2D@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FDeprecateSlateVector2D const CoreStyleConstants::Icon16x16” (?Icon16x16@CoreStyleConstants@@3UFDeprecateSlateVector2D@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FDeprecateSlateVector2D const CoreStyleConstants::Icon18x18” (?Icon18x18@CoreStyleConstants@@3UFDeprecateSlateVector2D@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FDeprecateSlateVector2D const CoreStyleConstants::Icon20x20” (?Icon20x20@CoreStyleConstants@@3UFDeprecateSlateVector2D@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FDeprecateSlateVector2D const CoreStyleConstants::Icon22x22” (?Icon22x22@CoreStyleConstants@@3UFDeprecateSlateVector2D@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FDeprecateSlateVector2D const CoreStyleConstants::Icon24x24” (?Icon24x24@CoreStyleConstants@@3UFDeprecateSlateVector2D@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FDeprecateSlateVector2D const CoreStyleConstants::Icon25x25” (?Icon25x25@CoreStyleConstants@@3UFDeprecateSlateVector2D@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FDeprecateSlateVector2D const CoreStyleConstants::Icon26x26” (?Icon26x26@CoreStyleConstants@@3UFDeprecateSlateVector2D@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FDeprecateSlateVector2D const CoreStyleConstants::Icon32x32” (?Icon32x32@CoreStyleConstants@@3UFDeprecateSlateVector2D@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FDeprecateSlateVector2D const CoreStyleConstants::Icon40x40” (?Icon40x40@CoreStyleConstants@@3UFDeprecateSlateVector2D@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FDeprecateSlateVector2D const CoreStyleConstants::Icon64x64” (?Icon64x64@CoreStyleConstants@@3UFDeprecateSlateVector2D@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FDeprecateSlateVector2D const CoreStyleConstants::Icon36x24” (?Icon36x24@CoreStyleConstants@@3UFDeprecateSlateVector2D@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FDeprecateSlateVector2D const CoreStyleConstants::Icon128x128” (?Icon128x128@CoreStyleConstants@@3UFDeprecateSlateVector2D@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FMargin const CoreStyleConstants::DefaultMargins” (?DefaultMargins@CoreStyleConstants@@3UFMargin@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FMargin const CoreStyleConstants::ButtonMargins” (?ButtonMargins@CoreStyleConstants@@3UFMargin@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FMargin const CoreStyleConstants::PressedButtonMargins” (?PressedButtonMargins@CoreStyleConstants@@3UFMargin@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FMargin const CoreStyleConstants::ToggleButtonMargins” (?ToggleButtonMargins@CoreStyleConstants@@3UFMargin@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FMargin const CoreStyleConstants::ComboButtonMargin” (?ComboButtonMargin@CoreStyleConstants@@3UFMargin@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct FMargin const CoreStyleConstants::PressedComboButtonMargin” (?PressedComboButtonMargin@CoreStyleConstants@@3UFMargin@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “class FName Audio::NAME_PLATFORM_SPECIFIC” (?NAME_PLATFORM_SPECIFIC@Audio@@3VFName@@A)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “class FName Audio::NAME_PROJECT_DEFINED” (?NAME_PROJECT_DEFINED@Audio@@3VFName@@A)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “class FName Audio::NAME_BINKA” (?NAME_BINKA@Audio@@3VFName@@A)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “class FName Audio::NAME_ADPCM” (?NAME_ADPCM@Audio@@3VFName@@A)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “class FName Audio::NAME_PCM” (?NAME_PCM@Audio@@3VFName@@A)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “class FName Audio::NAME_OPUS” (?NAME_OPUS@Audio@@3VFName@@A)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “class FName Audio::NAME_RADA” (?NAME_RADA@Audio@@3VFName@@A)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “class FName Audio::NAME_OGG” (?NAME_OGG@Audio@@3VFName@@A)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “public: static class FCompositeBuffer const FCompositeBuffer::Null” (?Null@FCompositeBuffer@@2V1@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “public: static class FCompressedBuffer const FCompressedBuffer::Null” (?Null@FCompressedBuffer@@2V1@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “public: static class TStringView<wchar_t> Chaos::VisualDebugger::FChaosVDArchiveHeader::WrapperTypeName” (?WrapperTypeName@FChaosVDArchiveHeader@VisualDebugger@Chaos@@2V?$TStringView@_W@@A)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct UE::Math::TVector const EditorViewportDefs::DefaultPerspectiveViewLocation” (?DefaultPerspectiveViewLocation@EditorViewportDefs@@3U?$TVector@N@Math@UE@@B)
12>Module.MainModule.cpp.obj : error LNK2001: unresolved external symbol “struct UE::Math::TRotator const EditorViewportDefs::DefaultPerspectiveViewRotation” (?DefaultPerspectiveViewRotation@EditorViewportDefs@@3U?$TRotator@N@Math@UE@@B)

Here’s what I tried to do:

  • Remove all the temporary folders and regen the sln
  • Rebuild the engine with debug\debuggame configs
  • add modules to Build.cs

This is how my modules currently look like, after this issue started to happen I added a bunch of them
> PublicDependencyModuleNames.AddRange(new string { //

        "Core",
        "CoreUObject",
        "Engine",
        "InputCore",
        "EnhancedInput",
        "Niagara",
        "PhysicsCore",
        "GameplayTags",
        "GameplayAbilities",
        "RHI", 
        "RenderCore"});

    PrivateDependencyModuleNames.AddRange(new string[] {
        "GameplayTasks",
        "EditorStyle",
        "UnrealEd", "Slate",
        "SlateCore",
        "EditorSubsystem",
        EditorFramework",
        "AudioPlatformConfiguration",
        "Chaos"});

Any help would be appreciated, I can work in Dev config for now but this is strange and I would like to switch back to debug asap

The problem was solved with full deletion of the Engine source code and rebuilding from scratch. I was able to delete some of the dotnet files in the Binaries folder only with the windows safe mode.

Engine version is 5.4.4 and I believe it was the Live Coding that broke it.