- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Take a look at Installing Microsoft Visual Studio* for Use with Intel® Compilers - make sure you have installed the optional component "Desktop Development with C++".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Steve,
Thank you very much for your message. I have installed “Desktop Development with C++”. Out of desperation I have already reinstalled VS 2022 and the intel compiler twice.
I also have the libucrtd.lib on my computer:
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\ucrt\arm64
“C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x86\libucrtd.lib”
“C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x86\libucrt.lib”
As I'm not a computer scientist, I don't know what to do at the moment.
Best regards from the far north....Jo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you also have a folder C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x64 ?
(the 10240 may be a different number.)
First of all, make sure that the configuration platform is x64 and not Win32 (it will show in the second row of the menu bar.) Try this:
Right click on the project name in the Solution Explorer tab (the one with the purple "Fo" icon) and select Properties. Select Linker > General. In the field for "Additional Library Directories", paste the path I showed above if it exists on your system. It will then look like this:
See if it builds now. If it doesn't, please locate the buildlog.htm under your project folder (will be in a subfolder x64\Debug or x64\Release), ZIP it, and attach the zip to a reply here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Steve,
sorry for my late reply, but due to the time difference I always reply a little late.
I then found the following:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x64
Then I opened the libraries and realized that the path was not entered (attachment). Then I entered the path shown above and got no error message....super.
If I start the program without debug I only get a black window, with debug it works...why?
Then I noticed that I have to re-enter the path every time I start a new program?
Enclosed also the buildlog.
Now I have hope that it will work.
Thank you so much....Jo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the buildlog. It suggests that you are using a Preview version of VS2022. If so, please uninstall that and install the "production" version of VS2022. Others have had issues with the Preview version in the past. Intel does not test on nor support using Preview versions of VS.
Without seeing your program, I could not begin to guess why you are getting a black screen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Steve,
everything worked after all. Following your advice, I deleted the preview version and loaded VS 2022.
Now nothing works at all. I now get the error message that VS 2022 cannot read the file versions (I didn't have this message before) and must first convert the files via VS 17.2?
Now I am at a loss
Best regards....Jo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Would you please show a screenshot of the error message? Maybe you need to recreate the project.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good morning Steve,
as you remember, I had installed VS 2022 Preview and then everything worked. VS 2022 could also read the project file (80 subprograms with about 2 million lines) from VS 2013 without giving an error message. Everything was compiled and linked cleanly and the program ran.
As recommended, I then deleted Preview and installed VS 2022 with everything including Desktop Development with C++. Nothing worked there.
So I deleted everything and installed Preview again, which worked. Now suddenly Preview can no longer read the project file (attachment). I am told that the file is not compatible, although it worked before. I have also installed Desktop Development with C++.
Then I read that you can, for example VS 2017 and use this detour to make the project file compatible. But that doesn't work either, because the system tells me I have to delete Preview first. Deleting and reinstalling takes an incredible amount of time. I really don't know what to do anymore.
Preview works otherwise. I have written a small test routine and compiled and linked it cleanly and the program is executable.
Best wishes for the day....Jo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please zip a sample project folder that doesn't load for you and attach it to a reply here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Steve,
this week I'm in Paris and then Madrid on business. I will be back on Sunday 1st December and will then create the zip-file. I hope that is ok for you.
Thank you very much and have a nice week...Jo
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page