comp.lang.ada
 help / color / mirror / Atom feed
From: "s. ashen" <spain.ashen@gmail.com>
Subject: Re: ada import c function
Date: Wed, 29 Apr 2009 09:00:03 -0700 (PDT)
Date: 2009-04-29T09:00:03-07:00	[thread overview]
Message-ID: <4fdc6047-23ec-4fdf-bdc6-56742874cf66@l16g2000pra.googlegroups.com> (raw)
In-Reply-To: T%LJl.174457$4m1.123708@bgtnsc05-news.ops.worldnet.att.net

On 29 Квіт  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.



  reply	other threads:[~2009-04-29 16:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-28 20:45 ada import c function s. ashen
2009-04-28 21:18 ` Maciej Sobczak
2009-04-28 21:40 ` sjw
2009-04-28 23:08 ` 459143320
2009-04-29 16:00   ` s. ashen [this message]
2009-04-29 19:03   ` sjw
2009-04-29 23:04     ` anon
2009-04-30 20:48       ` sjw
2009-04-30 21:32         ` Gautier
2009-04-30 23:42           ` linking with g++ (was: ada import c function) Björn Persson
2009-05-01  5:48             ` linking with g++ Gautier
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox