From: dweller@dfw.net (David Weller)
Subject: Re: Calling Ada (GNAT) from C programs...
Date: 1996/03/30
Date: 1996-03-30T00:00:00+00:00 [thread overview]
Message-ID: <4jkame$hr5@dfw.dfw.net> (raw)
In-Reply-To: mmanng2aq2y1w.fsf@ibm.net
In article <mmanng2aq2y1w.fsf@ibm.net>, Gerd Moellmann <mmann@ibm.net> wrote:
>
>> gnatbind -n greetings.ali is called, then the linkage command is
>> ld main.o b_greetings.o greetings.o
>>
>> Which gives...[unresolved symbols]
>You must link with the object files (*.o) for the library units that
>are named in greetings.ali (system.o etc.).
Actually, I originally tried that, but it generates a "ripple effect".
The correct command, as Robert Dewar has pointed out, is to follow
that gnatbind command above with
gnatbl -linkonly greetings.ali main.o
I've also been told this will change to
gnatlink greetings.ali main.o
with GNAT v3.04
--
Ancient man: Web apps? Java! OO stuff? Eiffel! "Real-time" stuff? C/C++!
Modern man: Web apps? Ada 95! OO stuff? Ada 95! "Real-time" stuff? Ada 95!
Not a revolution...but evolution. http://lglwww.epfl.ch/Ada
next prev parent reply other threads:[~1996-03-30 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-03-27 0:00 Calling Ada (GNAT) from C programs David Weller
1996-03-30 0:00 ` Gerd Moellmann
1996-03-30 0:00 ` David Weller [this message]
1996-04-01 0:00 ` michael
1996-04-01 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox