From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3b74366795b5f025 X-Google-Attributes: gid103376,public From: Samuel Tardieu Subject: Re: How To Compile Ada Prog Interfaced With Fortran Date: 1998/09/23 Message-ID: <87ogs6g498.fsf@zaphod.enst.fr>#1/1 X-Deja-AN: 394047546 Content-Transfer-Encoding: 8bit References: Mail-Copies-To: sam@ada.eu.org Content-Type: text/plain; charset=iso-8859-1 Organization: TELECOM Paris Mime-Version: 1.0 User-Agent: Gnus/5.070031 (Pterodactyl Gnus v0.31) XEmacs/21.2(beta1) (Aeolus) Newsgroups: comp.lang.ada Date: 1998-09-23T00:00:00+00:00 List-Id: >>>>> "Samir" == Samir N Muhammad 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 <> in an Ada package that uses that library. Sam -- Samuel Tardieu -- sam@ada.eu.org