comp.lang.ada
 help / color / mirror / Atom feed
From: michael@ifr.luftfahrt.uni-stuttgart.de
Subject: Re: Calling Ada (GNAT) from C programs...
Date: 1996/04/01
Date: 1996-04-01T00:00:00+00:00	[thread overview]
Message-ID: <4joddr$32jc@info4.rus.uni-stuttgart.de> (raw)
In-Reply-To: 4jcb30$8kc@dfw.dfw.net

dweller@dfw.net (David Weller) wrote:
[...]
> 
> I'm trying to get the special GNAT binding feature to work with some C
> code and getting unresolved symbols.  I can't seem to find
> documentation on it...I have a feeling it's simething simple.
> 
[...]

The easiest way to deal with that problem is to put all .o files from
adalib into an archive, e.g. libgnat-rtl.a and then link your programs
with -lgnat-rtl -lgnat in addition to your own object code (assuming
that these libs are in your library search path). I always wonder why
this is not the normal procedure of gnat anyway.

Michael

-- 
------------------------------------------------------------------------
--Dipl.-Ing. Michael Paus   (Member: Team Ada)
--University of Stuttgart, Inst. of Flight Mechanics and Flight Control
--Forststrasse 86, 70176 Stuttgart, Germany
--Phone: (+49) 711-121-1434  FAX: (+49) 711-634856
--Email: Michael.Paus@ifr.luftfahrt.uni-stuttgart.de (NeXT-Mail welcome)





  parent reply	other threads:[~1996-04-01  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
1996-04-01  0:00 ` michael [this message]
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