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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1094ba,779963aec8b92c87 X-Google-Attributes: gid1094ba,public X-Google-Thread: 103376,779963aec8b92c87 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-10 07:22:18 PST Message-ID: <3e957e19@uni-wuerzburg.de> From: Christopher Dahnken Subject: Re: Fortran calling Ada To: sam@rfc1149.net Newsgroups: comp.lang.ada,comp.lang.fortran Followup-To: comp.lang.ada Date: Thu, 10 Apr 2003 16:22:17 +0200 References: <87znn0j97f.fsf@inf.enst.fr> Organization: =?ISO-8859-1?Q?Universit=E4t_W=FCrzburg?= User-Agent: KNode/0.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit NNTP-Posting-Host: wptx74.physik.uni-wuerzburg.de X-Trace: 10 Apr 2003 16:22:17 +0100, wptx74.physik.uni-wuerzburg.de Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!feed.news.nacamar.de!news.belwue.de!news.uni-stuttgart.de!uni-erlangen.de!uni-wuerzburg.de!wptx74.physik.uni-wuerzburg.de Xref: archiver1.google.com comp.lang.ada:36052 comp.lang.fortran:35669 Date: 2003-04-10T16:22:17+02:00 List-Id: Samuel Tardieu wrote: >>>>>> "Gerd" == Gerd Reger writes: > > Gerd> I try to compile a Fortran main program which is calling an Ada > Gerd> procedure with the follwing commands: > > Gerd> [...] > Gerd> gnatlink -C lm -lg2c -o test *.ali *.o > > Gerd> I'm not able to link. > > You need to press the return key at the end of the gnatlink > line. Seriously, if you don't give the error ("not able to link" can > be anything), your chances of getting a meaningful answer are small. > > Sam Right. Fortran also likes to be called with an underscore in front or behind the function name (depends) in an other language, e.g. C. The error message would help ... Chris