Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29542 Discussions

fatal error LNK1104: cannot open file 'ucrt.lib'

AlexG1
Beginner
265 Views

After I installed latest versions of Intel API Base and HPC toolkits, I cannot link any of my old Fortran projects. The "Nuild" command in all versions of Vsual Studio 2019, 2022, and 2026 end with this

fatal error LNK1104: cannot open file 'ucrt.lib'

 

Please help!

0 Kudos
1 Solution
Shiquan_Su
Moderator
202 Views

Hi, Alex:

During your installation and integration, did you choose "Desktop development with C++" in the menu? That is a common situation that leads to not finding the library.

The library itself is typically in a path similar to this:

C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22000.0\ucrt\x86

Can you find that on your system?

You can manually feed the path to your VS settings as a workaround.

This lib is part of Windows, and is not related to the Intel OneAPI product. This is not an Intel OneAPI product issue. It is a Microsoft Visual Studio integration with Intel OneAPI issue.

View solution in original post

0 Kudos
2 Replies
Shiquan_Su
Moderator
203 Views

Hi, Alex:

During your installation and integration, did you choose "Desktop development with C++" in the menu? That is a common situation that leads to not finding the library.

The library itself is typically in a path similar to this:

C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22000.0\ucrt\x86

Can you find that on your system?

You can manually feed the path to your VS settings as a workaround.

This lib is part of Windows, and is not related to the Intel OneAPI product. This is not an Intel OneAPI product issue. It is a Microsoft Visual Studio integration with Intel OneAPI issue.

0 Kudos
AlexG1
Beginner
191 Views

I was talking about a Fortran project, not C++ project.

I reinstalled from scratch VS 2026 and then Intel API toolkits. After that, the problem disappeared. 

0 Kudos
Reply