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: william.oliver@colorado.edu (oliver) Subject: Re: How To Compile Ada Prog Interfaced With Fortran Date: 1998/09/23 Message-ID: #1/1 X-Deja-AN: 394061490 References: <87ogs6g498.fsf@zaphod.enst.fr> Organization: CU Psychology Newsgroups: comp.lang.ada Date: 1998-09-23T00:00:00+00:00 List-Id: In article <87ogs6g498.fsf@zaphod.enst.fr>, sam@ada.eu.org wrote: >>>>>> "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 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