comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: importing fortran routines to GNAT
Date: 1997/02/23
Date: 1997-02-23T00:00:00+00:00	[thread overview]
Message-ID: <dewar.856697845@merv> (raw)
In-Reply-To: 5eke6f$5tu@arktur.rz.uni-ulm.de


Joerg said

<<The third parameter is the name to be found in the object file as far as I
understand this materia. So in your case a

    pragma import(Fortran,subsum, "_subsum");

should work.>>

NO, that's wrong, the *fourth* parameter is the actual external name, so it
is better to write

    pragma Import (Fortran, subsum, Link_Name => "_subsum");

The third parameter is the external name, and should look exactly like
the name looks in Fortran, including using the proper case, but not
adding junk characters.

Sounds like there is a bug in some particular configuration of GNAT. This
should be reported to report@gnat.com (it is especially important in a
case like this to give precise versions of everything (GNAT, Fortran
compiler, operating system, machine).





      reply	other threads:[~1997-02-23  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-21  0:00 importing fortran routines to GNAT Pasi J. Hakala
1997-02-21  0:00 ` Robert Dewar
1997-02-21  0:00 ` Joerg Rodemann
1997-02-23  0:00   ` Robert Dewar [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox