comp.lang.ada
 help / color / mirror / Atom feed
From: william.oliver@colorado.edu (oliver)
Subject: Re: How To Compile Ada Prog Interfaced With Fortran
Date: 1998/09/23
Date: 1998-09-23T00:00:00+00:00	[thread overview]
Message-ID: <william.oliver-2309981150180001@tele-anx0207.colorado.edu> (raw)
In-Reply-To: 87ogs6g498.fsf@zaphod.enst.fr

In article <87ogs6g498.fsf@zaphod.enst.fr>, sam@ada.eu.org wrote:

>>>>>> "Samir" == Samir N Muhammad <sam818@felix.seas.gwu.edu> writes:
>
>Samir> Hello Everybody Could any one tell me what are the steps for
>Samir> compiling, binding, and linking an Ada program interfaced with
>Samir> an intrinsic Fortran function(e.g. the MATMUL or
>Samir> DOT_PRODUCT).
>
>Compile your Fortran code into x.o, y.o and z.o (for example), then
>use the regular gnatmake command with additionnal objects given to the 
>linker (using the -largs switch):
>
>% gnatmake my_ada_program -largs x.o y.o z.o
>
>Or better, put your Fortran objects into a library (let's call it libft.a),
>and add a <<pragma Linker_Options ("-lft");>> in an Ada package that
>uses that library.
>
>  Sam

This seems to good to be true. Could one use this approach to gain
complete access to LAPACK or to the Numerical Recipes software? Or is this
something that one can do in theory but no one does in practice? I'm
looking into using Ada for numeric programming, but I'm disheartened to
find that there is very little supporting code available. Is this because
it is very easy in Ada to access existing functions in such packages as
LAPACK?

-Bill




  reply	other threads:[~1998-09-23  0:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-23  0:00 How To Compile Ada Prog Interfaced With Fortran Samir N. Muhammad
1998-09-23  0:00 ` Samuel Tardieu
1998-09-23  0:00   ` oliver [this message]
1998-09-23  0:00     ` Gisle S{lensminde
1998-09-23  0:00     ` Larry Kilgallen
1998-09-23  0:00     ` Alain Le Guennec
1998-09-23  0:00     ` Robert I. Eachus
1998-09-24  0:00     ` Ken Thomas
1998-09-24  0:00       ` dewarr
1998-10-03  0:00   ` bglbv
1998-09-23  0:00 ` David C. Hoos, Sr.
1998-09-24  0:00   ` dewarr
replies disabled

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