This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gfortran and MSVC




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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]