# LINK : fatal error LNK1104

**URL:** <https://forums.unrealengine.com/t/link-fatal-error-lnk1104/769170>\
**Category:** C++\
**Tags:** error, patch, unreal-engine, crash, CPP\
**Created:** [February 12, 2023, 2:51pm UTC](https://forums.unrealengine.com/t/link-fatal-error-lnk1104/769170 "2023-02-12T14:51:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![erym03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@erym03](https://forums.unrealengine.com/u/erym03)\
**Post date:** [February 12, 2023, 2:51pm UTC](https://forums.unrealengine.com/t/link-fatal-error-lnk1104/769170/1 "2023-02-12T14:51:24Z")

</div>

Hi, I’ve encountered an error that I can’t understand.  
I created a new project in UE5 (I tried with both 5.0.3 and 5.1.1). I create a new C++ class and click build to compile everything. But every time it gives me errors.

**If I build from VS:**

> Error MSB3073 exiting command ““D:\Games\Epic Games\Games\UE\_5.1\Engine\Build\BatchFiles\Build.bat” projectWarEditor Win64 Development -Project=“C:\Users\User\Documents\CODES\Unreal Engine\project-war\projectWar.uproject” -WaitMutex -FromMsBuild” with code 6.

**AND**

> Error (active) E0070 incomplete type not allowed projectWar D:\Games\Epic Games\Games\UE\_5.1\Engine\Source\Runtime\SlateCore\Public\Layout\BasicLayoutWidgetSlot.h

**While if I save the files and leave the compilation to LIVE CODING it gives me this error:**

> LINK : fatal error LNK1104: unable to open file ‘C:\Users\2care\Documents\CODES\Unreal Engine\project-war\projectWar\Binaries\Win64\UnrealEditor-projectWar.patch\_0.exe’  
> Failed to link patch (0.000s) (Exit code: 0x450)

I just created a class without even messing around with the code. Can anyone tell me why all these errors?

---

<div class="post-metadata">

**Author:** ![STRiFE.x](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/strife.x/32/969826_2.png) [@STRiFE.x](https://forums.unrealengine.com/u/STRiFE.x)\
**Post date:** [February 12, 2023, 5:10pm UTC](https://forums.unrealengine.com/t/link-fatal-error-lnk1104/769170/2 "2023-02-12T17:10:26Z")

</div>

You have to include `"SlateCore"` in your build dependencies.

---

<div class="post-metadata">

**Author:** ![erym03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@erym03](https://forums.unrealengine.com/u/erym03)\
**Post date:** [February 12, 2023, 5:21pm UTC](https://forums.unrealengine.com/t/link-fatal-error-lnk1104/769170/3 "2023-02-12T17:21:57Z")

</div>

Ohh, how can I include this?  
But why UE5 do not include SlateCore in automatic?

---

<div class="post-metadata">

**Author:** ![STRiFE.x](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/strife.x/32/969826_2.png) [@STRiFE.x](https://forums.unrealengine.com/u/STRiFE.x)\
**Post date:** [February 13, 2023, 7:24am UTC](https://forums.unrealengine.com/t/link-fatal-error-lnk1104/769170/4 "2023-02-13T07:24:46Z")

</div>

TLDR: Unreal is made up of modules, and you have to include these modules manually in your project’s `.Build.cs` file.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/8/f885e3bef29474c9a807c1105191a7b1a0bae0ec.jpeg "Unreal Engine C++ Project Setup, From Scratch") ](https://www.youtube.com/watch?v=94FvzO1HVzY)

---

<div class="post-metadata">

**Author:** ![erym03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@erym03](https://forums.unrealengine.com/u/erym03)\
**Post date:** [February 13, 2023, 8:04pm UTC](https://forums.unrealengine.com/t/link-fatal-error-lnk1104/769170/5 "2023-02-13T20:04:09Z")

</div>

![Senza nome](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/e/42e7afc89dc19ec8adfaadcf980af9291275bf4a.png)  
I tried, but there are still the same errors ☹

---

<div class="post-metadata">

**Author:** ![Detach789](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Detach789](https://forums.unrealengine.com/u/Detach789)\
**Post date:** [February 13, 2023, 8:08pm UTC](https://forums.unrealengine.com/t/link-fatal-error-lnk1104/769170/6 "2023-02-13T20:08:09Z")

</div>

Did you create the new C++ class through the Unreal editor or just in C++?
