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

fatal error LNK1104: file "MSVCRTD.lib" cannot be opened.

rase
New Contributor I
2,992 Views

I had to repair my Windows 7 (64 bit) system because the Windows Explorer did not work as it should. The repair went ok, the explorer worked again, and all other programs, as far I could find out until now.

Then I thought it would be a good opportunity to get rid of some useless stuff. I deinstalled Visual Studio 2010 and the IVF 2011 versions because I had installed VS2012, the IVF 2013 SP1 and the next update (139, /C++ and Fortran) a few weeks ago. After the repair of Windows I got funny error messages from several IVF projects which worked without problems until a few days ago. I suspected a problem in IVF, so I deinstalled and reinstalled Visual Studio 2012 and Composer XE (139).

Now I am not able to build the simplest two-line console program ("hello world") anymore. During linking the message appears: "fatal error LNK1104: file "MSVCRTD.lib" cannot be opened". This happens with all other projects, besides diagnostic messages from C and Fortran programs I never had before. I am really depressed: nothing goes, what did I wrong? Do I have to install the complete Windows system and start completely from scratch? Has anyone a suggestion how I can get out of this mess?

0 Kudos
1 Solution
Steven_L_Intel1
Employee
2,992 Views

At this point I think I would:

  • Uninstall Fortran
  • Uninstall Visual Studio
  • Delete the Visual Studio 11.0 folder
  • Run regedit.exe, delete the HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\11.0 tree
  • Reboot
  • Reinstall VS2012, making sure that C++ is among the tools selected (this is a default)
  • Reinstall Fortran

I doubt a reinstall of Windows is needed.

View solution in original post

0 Kudos
5 Replies
Steven_L_Intel1
Employee
2,992 Views

Try this. In VS2012, select Tools > Options > Intel Composer XE > Visual Fortran > General. With the Win32 tab selected, click Reset...  Repeat this with the x64 tab selected.

0 Kudos
rase
New Contributor I
2,992 Views

Thanks for the quick response. Pressing the reset button in the Fortran options did not help. The same error message is issued during the link step. The WiDE development environment for Winteracter returns an error message for the link step as well.
 

0 Kudos
Steven_L_Intel1
Employee
2,993 Views

At this point I think I would:

  • Uninstall Fortran
  • Uninstall Visual Studio
  • Delete the Visual Studio 11.0 folder
  • Run regedit.exe, delete the HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\11.0 tree
  • Reboot
  • Reinstall VS2012, making sure that C++ is among the tools selected (this is a default)
  • Reinstall Fortran

I doubt a reinstall of Windows is needed.

0 Kudos
rase
New Contributor I
2,992 Views

Thanks a lot, Steve, you saved my day (and the next week if I had to start from scratch). After executing the prescribed steps everything is back to normal. No funny error messages during compilation of C and Fortran code, or after the linking step anymore.

0 Kudos
Steven_L_Intel1
Employee
2,992 Views

Glad to hear it.

0 Kudos
Reply