Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29280 Discussions

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

John_V_
Beginner
6,171 Views

Using Visual Studio Professional 2012 and Intel Visual Fortran Composer XE 2013 SP1, I get "fatal error LNK1104:  cannot open file 'LIBCMTD.lib'" when trying to build a solution.

I have 'LIBCMTD.lib' in directory C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib\amd64 and the x64 Libraries has "$(VCInstallDir)lib\amd64" where $(VCInstallDir) has value C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC.

What am I missing?

 

Thanks, John

0 Kudos
4 Replies
mecej4
Honored Contributor III
6,171 Views

Are you building 32-bit or 64-bit objects? The directories that you listed are for the 64-bit versions of the C libraries. Do you have corresponding 32-bit libraries?

0 Kudos
Steven_L_Intel1
Employee
6,171 Views

Please do this - set this option to True in Tools > Options:

ShowEnvironment.png

(This is showing the screen for the 2015 product - for 2013 SP1, look for "Intel Composer XE" instead of "Intel Compiler and Tools".)

Do another build. Create a ZIP of the buildlog.htm from the failed build and attach it here. This will help us understand where the problem might be. There should be a LIBCMTD.LIB in C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib as well as in the folder you found.

0 Kudos
John_V_
Beginner
6,171 Views

Hi Steve, I did not have "LIBCMTD.lib" in C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib, there was only one in C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib\amd64.  I compared my C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib directory with another coworker whose Intel Fortran works, my C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib is missing many files.

If I add LIBCMTD.lib from the other coworkers Intel Fortran that works to C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib then there is another file which cannot be linked.  Here is the C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib directory which I had after installation of Visual Studio 12 and Intel Visual Fortran Composer XE 2013 SP1.  Where do I get the rest of the files? Attached is the buildlog.htm from this setup. Thanks,  John

libdir.png

 

 

 

0 Kudos
Steven_L_Intel1
Employee
6,171 Views

You need to reinstall or repair your Visual Studio 2012, then, as you've lost the 32-bit Visual C++ support. This is required by Intel Fortran (if you're not using our bundled VS2010 Shell and libraries.)

0 Kudos
Reply