- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a brand new Dell computer with Windows XP. I complete-installed Microsoft Visual Studio 2005, MSDN, and then Intel Visual Fortran 9.1 compiler. I opened a project from Visual Studio .NET. Upon building I receive an error:
fatal error LNK1811: cannont open input file 'libifcoremt.lib'
What do I do? This is the same problem I had with both Visual Studio .NET and v2005 on my previous Win2000 computer. The odd thing is that three other people are using the exact same project/code in WinXP and Win2000 with Visual Studio .NET and have no problem building and running.
It appears that Visual Studio is including its own files and project specific files, but not Intel-related files, although the directories are specified in the path configurations.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oh - is this a mixed-language project with a C main program or the C project does the linking? If so, you need to add the Fortran LIB folder to Tools..Options..Projects..VC++ Directories..Library Files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
$(FORTInstallDir)Lib
$(VCInstallDir)lib
$(VCInstallDir)atlmfclib
$(VCInstallDir)atlmfclibi386
$(VCInstallDir)PlatformSDKlib
$(FrameworkSDKDir)lib
$(VSInstallDir)
$(VSInstallDir)lib
C:Program FilesMicrosoft Visual Studio 8VCATLMFCLIB
C:Program FilesMicrosoft Visual Studio 8VCLIB
C:Program FilesMicrosoft Visual Studio 8VCPlatformSDKlib
C:Program FilesMicrosoft Visual Studio 8SDKv2.0lib
%IFORT_COMPILER91%IA32Lib
%IFORT_COMPILER91%EM64TLib
I inserted the line
c:Program FilesIntelCompilerFortran9.1IA32Lib
just below the $(IFORTInstallDir)Libline to see if a more explicit path statement would help. It didn't.
The total program is a C++ user interface which calls a Fortran program to run a farm simulation. The Fortran program, itself, compiles fine. It was imported according to Visual Studio requirements when we moved up to .Net and the whole thing works just fine on several other computers (both Win 2000 and XP). The C++ section itself also builds just fine except for locating the Fortran Libraries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
C:Program FilesIntelCompilerFortran9.1IA32Lib
to the C++ Projects..VC++ Directories..Library Files list.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Steve. If you were nearby I would bake you some chocolate chip cookies! :)
I have the program compiling now. Running the .exe is causing an assertion error, but that I am sure is a totally different issue. For the sake of other readers here is what I did to fix the "LNK1811" and related issues.
Tool/Options/Projects and Solutions/VC++ Directories
Top left pull-down menu is set to "Platform: Win32"
Top right pull-down menu (Show directories for:)
SELECT from pull-down menu |
ADD to the list in dialog window ** |
Executable files |
C:Program FilesIntelCompilerFortran9.1IA32Bin |
Include files |
C:Program FilesIntelCompilerFortran9.1IA32Include |
Library files |
C:Program FilesIntelCompilerFortran9.1IA32Lib |
**the paths should be whatever YOUR computer path names are.
Tool/Options/Intel Fortran/General
SELECT button from the following textboxes |
ADD to the list in dialog window ** |
Executables: |
C:Program FilesIntelCompilerFortran9.1IA32Bin |
Libraries: |
C:Program FilesIntelCompilerFortran9.1IA32Lib |
Includes: |
C:Program FilesIntelCompilerFortran9.1IA32Include |
**the paths should be whatever YOUR computer path names are.
Changes to YOUR specific project settings:
Select YOUR C++ project; right-click and open the properties dialog box.
Under Configuration Prope rties/Linker/Input
ADD to Additional dependencies the complete path of your Fortran project lib. (I think it helps to have no spaces in the path; if you do have spaces, maybe you can put the whole thing in quotes I dont know.) For example, I have a C++ project called IFSM and within it is a Fortran project which builds first to be called IFSM_lib. So my new additional dependencies line has three libraries listed, and looks like:
libifcoremt.lib ifqw_sdi.lib c:IFSMIFSMDebugIFSM_lib.lib
that's all. Thanks again for your quick help! -- Tamie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page