Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29293 Discussions

LNK1104: cannot open file "dformd.lib"

efmorgan
Beginner
957 Views
Hello,
I am trying to link a fortran subroutine with ABAQUS. I have Compaq Visual Fortran 6.6 and Microsoft Visual C++ 6.0 installed. I am gettingthe above link error. I have already checked that the system environment variables LIB and INCLUDE have correct paths to the necessary files (including dformd.lib). Does anyone have any suggestions?
Thanks
0 Kudos
5 Replies
Steven_L_Intel1
Employee
957 Views
Are you doing this from the command line or the IDE? The IDE doesn't use the LIB environment variable, and instead uses the list under Tools..Options..Directories.
0 Kudos
haoh
Beginner
957 Views
Hi, I have the same problem! My makefile worked before the new version of Microsoft Visual Studio (.NET2003). Now I get this same error message!!
Anyone please help!
0 Kudos
Steven_L_Intel1
Employee
957 Views
Which Fortran compiler are you using? If it's Intel's, you need to recompile all Fortran sources with the Intel compiler and make sure you are not referencing dformd.lib, which is a CVF library, in your makefile.

If you are still using CVF, make sure that the ..DF98LIB folder is listed in the value for the LIB environment variable.
0 Kudos
durisinm
Novice
957 Views
Is the rule with CVF that using it from the command line makes use of the files defined by the LIB and INCLUDE environment variables while using the IDE makes use of the files listed under Tools>Options>Directories?

What's the relationship in the IDE of the files listed under Tools>Options>Directories and those listed in the project settings under the Link tab for input?

Does IVF work the same way as CVF for this issue?

Mike D.
0 Kudos
Steven_L_Intel1
Employee
957 Views
Yes, that is the rule. The IDE does not use the environment variables except that when CVF is installed, any existing values for PATH, LIB and INCLUDE are propagated to the IDE settings.

The paths listed in Tools..Options..Directories are those the compiler or linker or IDE will automatically search when it is looking for a file of the appropriate kind. If you just name a file in the Link tab, without a path, it will use the Libraries paths as shown in Tools..Options..Directories.

It works the same in IVF except that Fortran projects have their own set of directories in Tools..Options separate from that used by MSVC. A corollary to this is that if you are building an MSVC project that includes Fortran files, you need to add the Fortran library paths to the Visual C++ Projects Directories settings.
0 Kudos
Reply