- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
9 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!!!
I've added the other directories to the lib list, but I still get Fatal error cannot open "Ifconsol" error!!
HELP!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The path you give is not what I wrote above.
Are you building from the command line or from Visual Studio?
Are you building from the command line or from Visual Studio?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
I am building from command line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page