From: Samuel Tardieu <sam@ada.eu.org>
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: <87ogs6g498.fsf@zaphod.enst.fr> (raw)
In-Reply-To: QA8O1.458$4%.8751761@fozzy.nit.gwu.edu
>>>>> "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
--
Samuel Tardieu -- sam@ada.eu.org
next prev parent 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 [this message]
1998-09-23 0:00 ` oliver
1998-09-23 0:00 ` Robert I. Eachus
1998-09-23 0:00 ` Alain Le Guennec
1998-09-23 0:00 ` Gisle S{lensminde
1998-09-23 0:00 ` Larry Kilgallen
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