0

Just installed Windows 10 and VS2022, created an empty project, set compiler to Clang, compiled and I get these errors:

1>lld-link : error : could not open 'msvcrtd.lib': no such file or directory
1>lld-link : error : could not open 'oldnames.lib': no such file or directory

I'm sure I could add a path to the linker settings but I don't understand why this error occurs "out of the box"? Is there a bug with the VS2022 installation/surely this should not happen?

user997112
  • 26,971
  • 40
  • 166
  • 315
  • May I know if you have got any updates? Please consider answering it and accepting it as an answer to change its status to Answered. It will also help others to solve a similar issue. See also [stackoverflow.com/help/why-vote](https://stackoverflow.com/help/why-vote) – Yujian Yao - MSFT May 26 '22 at 08:58

1 Answers1

0

For could not open 'msvcrtd.lib', installing the Windos 10 SDK in Visual Studio Installer usually solves the problem. But just in case I also recommend you to read this issue.

enter image description here

About could not open 'oldnames.lib', you could refer to this issue in MSDN.