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

Cannot open file 'ifconsol.lib

pecan204
Beginner
2,454 Views
Hello
Can anyone help?
I have a c dll calling a fortran static lib.
Upon compile; LINK : fatal error LNK1104;Cannot open file 'ifconsol.lib
What can I do to fix this?
Thanks
Ken
0 Kudos
9 Replies
Steven_L_Intel1
Employee
2,454 Views
In Visual Studio, select Tools..Options..Projects..VC++ Directories. To the list for Library files, add C:Program FilesIntelCompilerFortran9.0IA32Lib and C:Program FilesCommon FilesIntelShared Filesia32Lib (adjust paths as needed.)
0 Kudos
pecan204
Beginner
2,454 Views
Steve,
There is no shared files/ia2/lib there is a shared files/ia32. There is only an msdia71.dll in that file. Is something missing?
I did have the other ia32.lib set in the tools vc++ projects.
I am wondering if the argument passing has changed from CVF? I thought there was some mention of that but I can't find any dics on it.
I updated 319184 in premeir support on the argument issue. Thought you were out.
What do you think?
Thanks
Ken
0 Kudos
Steven_L_Intel1
Employee
2,454 Views
I did write "ia32" under SharedFiles. Basically, look at the first few entries under Tools..Options..Intel Fortran..Library Files and make sure those appear for C++. (You'll have to spell out the full path - $IFORTInstallDir won't be recognized for C++.

Yes, argument passing conventions did change. Please read this whitepaper on CVF migration.

If you have the compiler IA32lib folder listed, you won't get the error you mentioned.
0 Kudos
gman01
Beginner
2,454 Views
I don't see the c:program filescommon filesintelcompilerfortran9.0Shared files folder in any of my directories.

I've added the other directories to the lib list, but I still get Fatal error cannot open "Ifconsol" error!!

HELP!!!
0 Kudos
Steven_L_Intel1
Employee
2,454 Views
The path you give is not what I wrote above.

Are you building from the command line or from Visual Studio?
0 Kudos
gman01
Beginner
2,454 Views
Oops, I meant I can't seem to find C:Program FilesCommon FilesIntelShared Files. All I see in that directory is a folder called registeration and support.

I am building from command line.
0 Kudos
Steven_L_Intel1
Employee
2,454 Views
I'd guess that you don't have the compiler installed properly, then. But ifconsol.lib isn't there and unless you're asking for paralllel processing support, the files in the Common Files folder aren't of interest. Are you using the "Build Environment For IA-32 Applications" shortcut to start the command session?
0 Kudos
Jugoslav_Dujic
Valued Contributor II
2,454 Views
Remind you, he's linking Fortran static library with C main program. Thus, the LIB= environment variable must contain "C:Program filesIntel...Lib" folder -- it will be set if the build is done from "Build Environment For IA-32 Applications" though (unless this environment lacks some environment data needed for C compilation, which I doubt).
0 Kudos
Steven_L_Intel1
Employee
2,454 Views
We don't know what he's doing - gman01 is not the original poster in this thread. You are correct, though, that the Fortran build environment provides all the settings needed to use MSVC as well.
0 Kudos
Reply