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:
- Download
Build Tools for Visual Studio <actual year>
from Microsoft site. - Run it. It should be called “Visual Studio Installer”.
- You probably will have some
Visual Studio Build Tools <actual year>
installed there. Click “Modify” button near it. - Go to “Individual Components” tab.
- 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 requires14.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 forv14.38
.VS 2022
- this is my<actual year>
today.x64/x86
- this is my processor architecture (this is where I got failed and got theLINK : 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.