This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: gfortran and MSVC
- From: cgodkin <cgodkin at gmail dot com>
- To: fortran at gcc dot gnu dot org
- Date: Mon, 31 May 2010 10:10:53 -0700 (PDT)
- Subject: Re: gfortran and MSVC
- References: <p2gfe03ae8f1004210330k10ff9003g435714c417e223ee@mail.gmail.com>
Dennis Wassel-2 wrote:
>
> Hi people,
>
> Today I have a Windows-specific question:
> I am trying to link code compiled with (mingw-w64) gfortran against
> DLLs compiled by MSVC, and have name mangling issues (calling
> convention should not be an issue, I think):
> Given a function/subroutine Foo_Func, gfortran creates a symbol
> "_foo_func_", while MSVC expects "FOO_FUNC". Using -fno-underscoring,
> manual uppercasing and BIND(C), I can make gfortran produce
> "_FOO_FUNC" but I cannot get rid of the initial underscore. Any idea
> how to do that?
>
> Cheers,
> Dennis
>
>
I am having exactly the same problem. Did you ever find a way to link
64-bit VS objects with
gfortran objects?
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.
Thanks!
carl
--
View this message in context: http://old.nabble.com/gfortran-and-MSVC-tp28314273p28733197.html
Sent from the gcc - fortran mailing list archive at Nabble.com.