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, LOTS_OF_MONEY,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7a41a150d3e3f8bd X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: Ada calling Fortran or Assembly Date: 1999/06/04 Message-ID: <7j8te5$gmf$1@nnrp1.deja.com>#1/1 X-Deja-AN: 485692319 References: X-Http-Proxy: 1.0 x36.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Fri Jun 04 16:04:28 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I) Date: 1999-06-04T00:00:00+00:00 List-Id: In article , "pit_viper_2000" wrote: > Anyone know how to link in Fortran from Ada? I have about 3,000 lines > of Fortran code that does lots of stuff with some numbers I read in > from a serial port...I don't want to have to rewrite the whole thing in > Ada...I'd rather just make calls to the Fortran subroutines. I know to > do some pragma Imports and pragma Linker_Options, but I don't know what > exact files to link in with the Linker_Options...nor do I know the > order to link them in. I was told the order matters. This is probably quite doable, but it is a highly system dependent thing. There's no way anyone can give you an answer unless you specify what platform/OS you are using, and what Ada and C compilers you are using. -- T.E.D. Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.