LINK : fatal error LNK1104: cannot open file

For some reason whenever I try to compile my c++ files it’s unable to patch link claiming that it can’t find a file in Binaries\Win64 named UnrealEditor-projectName.patch0.exe (I replaced my own project name with projectName).
For some reason it searches for the file in another folder of my project (previous version)
Instead of the current one (it searches in ‘11\4.11\ProjName\Binaries\Win64\UnrealEditor-ProjName.patch_0.exe’ instead of 4.11 it should already be version 13.11)

I looked over other tips in the forums like rebuilding solution of the c++ files in visual studio but it didn’t do anything.
I also saw another tip talking about deleting everything in Binaries\Win64 but when I do so it doesn’t recreate them and instead fail to open Unreal engine… (Did I delete it wrong? I just go to the files in file explorer and delete them)

you can try to build in ide first, then build in unreal editor. I remember I face the same problem, the visual studio tell me to install some lacked c++ package. then problem be solved.

1 Like

maybe can try generate visual studio project from .uproject

1 Like

I faced the same problem and found a solution:

  • Remove folder “Binaries\Win64”.
  • Open project in Unreal Engine to rebuild the project.
3 Likes