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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,701cccda09aefd03 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!postnews.google.com!l16g2000pra.googlegroups.com!not-for-mail From: "s. ashen" Newsgroups: comp.lang.ada Subject: Re: ada import c function Date: Wed, 29 Apr 2009 09:00:03 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4fdc6047-23ec-4fdf-bdc6-56742874cf66@l16g2000pra.googlegroups.com> References: <6568256f-39cd-4757-a630-fe6e4a9a82fc@l16g2000pra.googlegroups.com> NNTP-Posting-Host: 193.108.250.115 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1241045029 7161 127.0.0.1 (29 Apr 2009 22:43:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 29 Apr 2009 22:43:49 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l16g2000pra.googlegroups.com; posting-host=193.108.250.115; posting-account=q1C47AoAAADrkQ5iQxb09dvcilJrHjad User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.59 Safari/525.19,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:5611 Date: 2009-04-29T09:00:03-07:00 List-Id: On 29 =D0=9A=D0=B2=D1=96=D1=82 by uk_VT_linguist, 02:08, 459143...@att.net@worldnet.att.net (anon) wrote: > there are basically two ways > > gcc -c imported_function.c -o imported_function.o > gnat make use_of_import.adb > gnat bind use_of_import.ali > gnat link use_of_import.ali imported_function.o > > or the quick way > > gcc -c imported_function.c -o imported_function.o > gnat make use_of_import.adb -largs imported_function.o > Great Thanks!!! All work.