gfortran and MSVC
Dennis Wassel
dennis.wassel@googlemail.com
Mon May 31 20:49:00 GMT 2010
2010/5/31 cgodkin <cgodkin@gmail.com>:
> I am having exactly the same problem. Did you ever find a way to link
> 64-bit VS objects with gfortran objects?
well, to quote from Tobias, who in turn probably quoted from Kai from mingw-w64:
"binutils cannot read the newer object format produced by VC >= 2005"
so I guess I wouldn't want to try and find this out myself the hard way.
> We have been using the Absoft Fortran compiler and it does not put out the
> leading underscore
> like the gfortran insists on, but we'd like to use gfortran if possible.
Without knowing what exactly you try to achieve, I can only suggest
you go for the == def-alias, i.e. marry your VS code with gfortran
across a dll boundary, where you have pretty good control on naming
conventions and no worries about different object formats.
You may even have the choice between using gfortan + dlltool/dllwrap
to control the exports, or cl with the /MAP:filename option to control
the imports. I successfully used the first, but never tried the latter
(if you do, please let us know what your experiences are).
Cheers,
Dennis
More information about the Fortran
mailing list