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

Error LNK1104: Cannot open file 'ifconsol.lib'

Stephen_Painchaud
12,661 Views
I have IF 11.1.067 installed in VS2008. I have created a C++ DLL which calls a Fortran static library. I use default setting on both project and get the error descibed ain the title. I have also tried changing the Fortran libraries to Debug Multithreaded DLL (to match runtime library in the C++ project) but get the same error.

Other than that one change, I have done nothing else to the projects.

I have checked the Fortran compiler library directories under Tools -> Options, and they look OK. I even tried the reset button.

Is there something else I need to do?
0 Kudos
1 Solution
Wendy_Doerner__Intel
Valued Contributor I
12,661 Views
This error is usually caused by not putting the Fortran library directory in your search path in Microsoft Visual Studio (a one time setup). Please the KB which explains how to do it.

------

Wendy

Attaching or including files in a post



View solution in original post

0 Kudos
3 Replies
mecej4
Honored Contributor III
12,661 Views
The error message is from the linker, and the Intel library in question is in .../11.1/067/lib/ia32/ifconsol.lib. The file length is 6284 bytes.

Make sure that the library directory is specified correctly.

One point of confusion: did you get the linker error while trying to create the C++ DLL? If so, you could not have built a functional DLL.
0 Kudos
Wendy_Doerner__Intel
Valued Contributor I
12,662 Views
This error is usually caused by not putting the Fortran library directory in your search path in Microsoft Visual Studio (a one time setup). Please the KB which explains how to do it.

------

Wendy

Attaching or including files in a post



0 Kudos
Stephen_Painchaud
12,661 Views
Thanks Wendy, that was it. I have bookmarked that KB, very good info.
0 Kudos
Reply