comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: "extern" procedure in ada
Date: Wed, 02 Oct 2002 18:56:57 GMT
Date: 2002-10-02T18:56:57+00:00	[thread overview]
Message-ID: <3D9B4176.3020606@acm.org> (raw)
In-Reply-To: anf2fc$i4d$1@dns3.cae.ca

Bernard Azria wrote:
> "Jeffrey Carter" <jrcarter@acm.org> wrote in message
> 
>>If you have contact with the people writing the library, get a
>>specification file from them, with the package, and call it normally.
>>That's the easiest, simplest, and safest way to do this. You should only
>>try another approach if you absolutely have to.
>>
>>
> 
> I have tried to use the spec file of the procedure i am calling in the
> library, but the problem is when linking the object files, because this spec
> file needs a body file ...
> Using spec files twice also gives warning of "multiply defined", but it
> seems
> we can live with that ...
> May be is there a Gnat compilation option, that can used object files of the
> spec
> files I am "withing", instead of the source files ?

With GNAT, you need the spec, the read-only .ali file, and the object 
file. When the .ali file is read only, GNAT won't worry about whether it 
has a body or do any checking to see if it needs recompilation.

-- 
Jeff Carter
"This trial is a travesty. It's a travesty of a mockery of a
sham of a mockery of a travesty of two mockeries of a sham. ...
Do you realize there's not a single homosexual on that jury?"
Bananas




      reply	other threads:[~2002-10-02 18:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-27 19:40 "extern" procedure in ada Bernard Azria
2002-09-28  2:28 ` Jim Rogers
2002-09-28  3:13 ` SteveD
2002-09-28  3:47 ` sk
2002-09-30 14:37 ` Stephen Leake
2002-09-30 22:39   ` Bernard Azria
2002-10-01 19:57     ` Simon Wright
2002-10-02  1:49       ` Jeffrey Carter
2002-10-02 15:13         ` Bernard Azria
2002-10-02 18:56           ` Jeffrey Carter [this message]
replies disabled

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