Cannot compile - "delayimp.lib" not found

If someone reads it in 2025, I highly recommend to ensure that you have installed the correct version of your MSVC (compiler) component (just as @sauce404 wrote) before performing any tricks with paths settings or doing anything else as it written in the solution-answer (I suppose it is just outdated for today, but the same problem you can get even now).

How to:

  1. Download Build Tools for Visual Studio <actual year> from Microsoft site.
  2. Run it. It should be called “Visual Studio Installer”.
  3. You probably will have some Visual Studio Build Tools <actual year> installed there. Click “Modify” button near it.
  4. Go to “Individual Components” tab.
  5. Find the correct MSVC component, check it and click “Modify” dialog button.

correct MSVC component? - In my case it was MSVC v143 - VS 2022 C++ x64/x86 build tools (v14.38-17.8).

  • v14.38 - because my current state of UE5 sources requires 14.38.33130 version of the compiler (I got some warnings about this during build process in different places with this information).
  • v143 - because it is the only available option for v14.38.
  • VS 2022 - this is my <actual year> today.
  • x64/x86 - this is my processor architecture (this is where I got failed and got the LINK : fatal error LNK1181: cannot open input file ‘delayimp.lib’ error because I tried to use the compiler for another processor architecture).

Try to apply the same logic for your case.

There is alse an option with “Spectre-mitigated libs”, but I didn’t try it and cannot say anything about it.