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-Thread: 103376,c1bdceb867926fdb X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!i18g2000pro.googlegroups.com!not-for-mail From: Marco Newsgroups: comp.lang.ada Subject: Re: Interfacing Ada with C Date: Sat, 24 Jul 2010 07:52:54 -0700 (PDT) Organization: http://groups.google.com Message-ID: <679a2439-4a38-4981-a138-3123a67197f5@i18g2000pro.googlegroups.com> References: NNTP-Posting-Host: 65.103.208.130 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1279983174 20311 127.0.0.1 (24 Jul 2010 14:52:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 24 Jul 2010 14:52:54 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i18g2000pro.googlegroups.com; posting-host=65.103.208.130; posting-account=WITAxQkAAAAHjnLda9Lofpqp8mERTWL4 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:12524 Date: 2010-07-24T07:52:54-07:00 List-Id: On Jul 24, 5:08=A0am, Robert A Duff wrote: > Ada novice writes: > > Hi, > > =A0 =A0 Having some background in C and in Ada, I would like to have so= me > > examples on how to interface codes between these two languages. I > > loved Ada but scientific computing libraries are not available. So I > > was thinking to use an available numeric library in C... > > Or Fortran? > > Look at 2.10, "Mixed Language Programming" in the GNAT > User's Guide. http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/ Curiously they only mention C not Fortran