Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29588 ディスカッション

Cannot open file 'ifconsol.lib

pecan204
ビギナー
2,458件の閲覧回数
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 件の賞賛
9 返答(返信)
Steven_L_Intel1
従業員
2,458件の閲覧回数
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.)
pecan204
ビギナー
2,458件の閲覧回数
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
Steven_L_Intel1
従業員
2,458件の閲覧回数
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.
gman01
ビギナー
2,458件の閲覧回数
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!!!
Steven_L_Intel1
従業員
2,458件の閲覧回数
The path you give is not what I wrote above.

Are you building from the command line or from Visual Studio?
gman01
ビギナー
2,458件の閲覧回数
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.
Steven_L_Intel1
従業員
2,458件の閲覧回数
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?
Jugoslav_Dujic
高評価コントリビューター II
2,458件の閲覧回数
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).
Steven_L_Intel1
従業員
2,458件の閲覧回数
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.
返信