- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
MS Visual C++ 6.0 Professional
Compaq Visual Fortran Standard Edition 6.1.0
Windows 2000 Professional Service Pack 2
I have MS Visual Studio 6 and am tryng to make an MFC AppWizard(exe), dialog based project. I
want to call a fortran subroutine from the C++ Code. But I am getting an error during the linking process
that looks like this:
--------------------Configuration: shad_8150_2 - Win32 Release--------------------
Compiling Fortran...
C:Program FilesMicrosoft Visual StudioMyProjectsshad_8150_2shad_8150_3.for
Compiling...
shad_8150_2Dlg.cpp
Linking...
LINK : fatal error LNK1104: cannot open file "dformd.lib"
Error executing link.exe.
shad_8150_2.exe - 1 error(s), 0 warning(s)
---------------------------------------------------------------------------------------
I searched for the "dformd.lib" file and it is located in:
C:Program FilesMicrosoft Visual StudioDF98LIB , where I assume it should be.
In the settings for my project, I chose (under the Fortran Libraries catagory) to use a multi-threaded DLL
Run-time library. And "Use Common Windows Libraries" is checked.
Under the "C/C++ Code Generation" catagory, I also chose to use a Multi-threaded DLL for the
run-time library.
These settings worked on a Windows NT 4.0 install of MS Visual Studio 6 Standard Edition.
But I can't get it to work on my Windows 2000 system.
Can someone tell me what I'm doing wrong? Thanks so much.
Compaq Visual Fortran Standard Edition 6.1.0
Windows 2000 Professional Service Pack 2
I have MS Visual Studio 6 and am tryng to make an MFC AppWizard(exe), dialog based project. I
want to call a fortran subroutine from the C++ Code. But I am getting an error during the linking process
that looks like this:
--------------------Configuration: shad_8150_2 - Win32 Release--------------------
Compiling Fortran...
C:Program FilesMicrosoft Visual StudioMyProjectsshad_8150_2shad_8150_3.for
Compiling...
shad_8150_2Dlg.cpp
Linking...
LINK : fatal error LNK1104: cannot open file "dformd.lib"
Error executing link.exe.
shad_8150_2.exe - 1 error(s), 0 warning(s)
---------------------------------------------------------------------------------------
I searched for the "dformd.lib" file and it is located in:
C:Program FilesMicrosoft Visual StudioDF98LIB , where I assume it should be.
In the settings for my project, I chose (under the Fortran Libraries catagory) to use a multi-threaded DLL
Run-time library. And "Use Common Windows Libraries" is checked.
Under the "C/C++ Code Generation" catagory, I also chose to use a Multi-threaded DLL for the
run-time library.
These settings worked on a Windows NT 4.0 install of MS Visual Studio 6 Standard Edition.
But I can't get it to work on my Windows 2000 system.
Can someone tell me what I'm doing wrong? Thanks so much.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try running Per-User Setup from the Compaq Visual Fortran 6 program group. Exit Developer Studio and open it again. My guess is that the CVF directories weren't added to Tools..Options..Directories.
Steve
Steve

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