www.digitalmars.com         C & C++   DMDScript  

c++ - Visual Fortran and digital mars?

reply "digital mars" <d96shade dtek.chalmers.se> writes:
I'm trying to build a .dll from a c/c++ file and a fortran 90 file. Is it
possible to link them with the digital mars linker? The fortran 90 file is
compiled with compaq visual fortran and I have an .obj file. Is the object
files compatible?

Thanks!

/Erik
Oct 03 2001
parent reply "Walter" <walter digitalmars.com> writes:
"digital mars" <d96shade dtek.chalmers.se> wrote in message
news:9pffjo$81d$1 digitaldaemon.com...
 I'm trying to build a .dll from a c/c++ file and a fortran 90 file. Is it
 possible to link them with the digital mars linker? The fortran 90 file is
 compiled with compaq visual fortran and I have an .obj file. Is the object
 files compatible?

 Thanks!

 /Erik

The linker will link files in Intel OMF-32 format. If that's what your FORTRAN compiler outputs, the linker can read them.
Oct 03 2001
parent reply "digital mars" <d96shade dtek.chalmers.se> writes:
 The linker will link files in Intel OMF-32 format. If that's what your
 FORTRAN compiler outputs, the linker can read them.

And how do i know that? Is it possible to identify .obj files? /Erik
Oct 04 2001
parent "Walter" <walter digitalmars.com> writes:
digital mars wrote in message <9ph2r0$14jj$1 digitaldaemon.com>...
 The linker will link files in Intel OMF-32 format. If that's what your
 FORTRAN compiler outputs, the linker can read them.

And how do i know that? Is it possible to identify .obj files? /Erik

You can run /dm/bin/dumpobj.exe on it, which will make it pretty obvious. Or consult your FORTRAN compiler documentation.
Oct 04 2001