Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
3 Views

Linking object file built with CVF

Hi,

A compiled .obj file has been provided to us by a third party, and the source code is unavailable. I'm attempting to reference the module in a C++ program. I've added the object file to Properties > Linker > Input > Additional Dependencies. When I build the project, the error I get is:

LINK : fatal error LNK1104: cannot open file 'DFPORT.LIB'

DFPORT as I understand it is the name of a CVF library, so I assume that's what was used to compile the file. Inspecting it with dumpbin /DIRECTIVES shows the following dependencies:

Linker Directives
-----------------
-defaultlib:DFPORT.LIB
-defaultlib:DFPORT.LIB
-defaultlib:dfor.lib
-defaultlib:libc.lib
-defaultlib:dfconsol.lib
-defaultlib:dfport.lib
-defaultlib:kernel32.lib

Is there a way for me to link this file? I'm using Visual Studio 2019 and Intel Parallel Studio XE Composer Edition for Fortran Windows (2019 Update 5).

0 Kudos
2 Replies
Highlighted
Black Belt
3 Views

No - sorry. You'll need

No - sorry. You'll need several of the CVF libraries to link that. Intel can't provide you with those. And if you thought to tell the linker to ignore those libraries in the hope that Intel Fortran had the same entry points, that won't work either. While many of the entry points do have the same names, the interfaces to many of them are different.

--
Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
0 Kudos
Highlighted
Black Belt
3 Views

Try asking the 3rd party to

Try asking the 3rd party to provide you an OBJ/LIB/DLL that is compatible with Intel Fortran, before you attempt other measures.

0 Kudos