This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Fortran calling Ada methods
- To: "Ames, Donald C" <donald dot c dot ames at lmco dot com>,"gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Subject: Re: Fortran calling Ada methods
- From: "Geert Bosch" <bosch at gnat dot com>
- Date: Sat, 08 Apr 2000 08:48:07 -0400
- Reply-To: "Geert Bosch" <bosch at gnat dot com>
Donald Ames wrote:
``I attempting to call an Ada95 method (both Function and Procedure)
from a Fortran module. I am able to compile both pieces of source code
individually, but I am having a difficult time getting them to link together
to create an executable program.
Any help would be greatly appreciated. ''
GNAT (GNU Ada) supports full interfacing with Fortran calling
conventions, as required by the Ada standard. This support includes
correct layout of fortran data types like multi-dimensional
arrays, and full interoperability.
Please check the GNAT documentation that comes with your GNAT installation,
and the Ada95 reference manual (available at www.adapower.com). If you
have language-related questions, I suggest asking in the newsgroup comp.lang.ada
instead of this list. Of course if you're using GNAT for a commercial project,
I'd recommend you drop a line to sales@gnat.com to find out about AdaCore's
support services contracts (see also www.gnat.com).
If you think there is a bug in the GNAT/Fortran interfacing, please send a complete
bug report to report@gnat.com. This report should include compilable
example as straight ASCII source or MIME-attachment with instructions
on what to compile and what the correct output should be. See gnatinfo.txt for
more details.
Kind regards,
Geert