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

intel fortran und VS 2022

JoachimB
Beginner
504 Views

Hello,
I have installed Visual Studio 2022 on my new Dell 5690 and then the intel fortran compiler. The compiler works but the linker is causing problems. I always get the error message:intel fortran fatal error LNK1104: File “libucrtd.lib” cannot be opened.
I have searched the internet and got no help. I am a mathematician and not a computer scientist and need an understandable solution.
Thank you all very much....Jo

 

0 Kudos
7 Replies
Mark_Lewy
Valued Contributor I
487 Views

Have you read this? Installing Microsoft Visual Studio* for Use with Intel® Compilers

It looks like you haven't installed the "Desktop development with C++" option, which includes the Universal C RTL (including libucrtd.lib)

0 Kudos
JoachimB
Beginner
480 Views

Hello Mark,
thank you very much for reading my message and for your thoughts. I had installed Desktop development with C++. I can also find the lib under: “C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\ucrt\arm64\libucrtd.lib”.
Apparently the lib is on my computer but VS cannot find it.
Best regards...Jo

0 Kudos
Mark_Lewy
Valued Contributor I
472 Views

Hi Jo,

There should also be a libucrtd.lib in the x64 directory under "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\ucrt".

The arm64 one is not suitable for use on Intel processors.

Verify that your directories are set correctly in Tools->Options, mine are:

 

Mark_Lewy_0-1732026323924.png

 

Mark

 

0 Kudos
JoachimB
Beginner
463 Views

Hello Mark,
I'm not quite sure. That's what it looks like for me.
Greetings...Jo

0 Kudos
Mark_Lewy
Valued Contributor I
436 Views

You don't have anything set for $(UCRTVersion).

From a Visual Studio x64 Native Tools Command Prompt check if UCRTVersion is set to something with the set command.

 

Mine PC has 

 

UCRTVersion=10.0.22621.0

 

I would expect yours to have

 

UCRTVersion=10.0.26100.0

 

If not, try reinstalling the universal C RTLs.

 

0 Kudos
JoachimBerg
Beginner
424 Views

Hello Mark,
following your suggestion, I uninstalled the C RTLs once and then reinstalled them (downloaded directly from Microsoft) without any change. The compiler still works but not the linker. I get the same error message.
Best wishes...Jo

0 Kudos
JoachimB
Beginner
415 Views

Hello Mark,
in addition you can see I have different lib versions.
Greetings...Jo

0 Kudos
Reply