# Packaging game fatal error LNK1181

**URL:** <https://forums.unrealengine.com/t/packaging-game-fatal-error-lnk1181/565297>\
**Category:** C++\
**Tags:** unreal-engine, UE5-0, question, CPP\
**Created:** [May 24, 2022, 3:47pm UTC](https://forums.unrealengine.com/t/packaging-game-fatal-error-lnk1181/565297 "2022-05-24T15:47:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Plonix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Plonix](https://forums.unrealengine.com/u/Plonix)\
**Post date:** [May 24, 2022, 3:47pm UTC](https://forums.unrealengine.com/t/packaging-game-fatal-error-lnk1181/565297/1 "2022-05-24T15:47:07Z")

</div>

So I have this project with C++ and blueprints.  
Unreal Engine & Visual Studio were installed on the E: drive, because the C: drive didn’t have enough space.

When I try to compile with Visual Studio I have the following error:  
LINK : fatal error LNK1181: cannot open input file ‘delayimp.lib’

Error that googling around and finding on this forum there are two solutions:

- Have both Unreal Engine and Visual Studio + SDK on the C: drive
- On Visual Studio modify the project settings adding “$(LibraryPath)” under Library Directories under VC++ Directories

The second fix works for me but only if I use Visual Studio, when I build for development mode using other IDE/Editor (like visual studio code) it still has that problem.  
So I kept using visual studio.

But now this error shows when I try to package my game. I guess Unreal tries to use directly the compiler and without that setting it doesn’t compile and I can’t package my game.

Does anybody knows a solution for this error? Anyway to make this library path something visible outside Visual Studio? I have a game jam that is ending and I can’t upload my game because of this ☹

Thanks for any help!

---

<div class="post-metadata">

**Author:** ![E-maniscool](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@E-maniscool](https://forums.unrealengine.com/u/E-maniscool)\
**Post date:** [December 3, 2023, 5:57pm UTC](https://forums.unrealengine.com/t/packaging-game-fatal-error-lnk1181/565297/2 "2023-12-03T17:57:55Z")

</div>

Did you ever figure this out?

---

<div class="post-metadata">

**Author:** ![FrostyJas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostyjas/32/1194640_2.png) [@FrostyJas](https://forums.unrealengine.com/u/FrostyJas)\
**Post date:** [December 4, 2023, 11:40am UTC](https://forums.unrealengine.com/t/packaging-game-fatal-error-lnk1181/565297/3 "2023-12-04T11:40:56Z")

</div>

Greetings @E-maniscool

Welcome back to the Unreal Engine Community Forums. The error above is generally caused by missing files or incompatible VS versions. I’d take a look at [this post](https://forums.unrealengine.com/t/fatal-error-lnk1181-cannot-open-input-file-delayimp-lib-in-association-with-attempting-to-create-a-new-plugin-from-a-ue5-provided-template/560614) for reference on that. I hope that this helps!
