comp.lang.ada
 help / color / mirror / Atom feed
From: "Antonio Martínez" <amartinez@atc.ugr.es>
Subject: Re: Interfacing C and Ada95
Date: Tue, 21 Oct 2003 18:04:45 +0200
Date: 2003-10-21T18:04:45+02:00	[thread overview]
Message-ID: <pan.2003.10.21.16.04.42.669178@atc.ugr.es> (raw)
In-Reply-To: pan.2003.10.20.23.13.08.847161@atc.ugr.es

> David Marceau <davidmarceau@sympatico.ca>:
>  > ... <David's additions> ...
> 
> and a library specification for linking "libgnat.a" or "libgnat.xx.so"
> 
> gcc <...> -L/usr/gnat/lib/<...>/adalib -lgnat

Ok. If I compile as:

gcc  -Wall -L/usr/gnat/adalib -lgnat progC.c paquete.o

but without adainit() and adafinal() it created a a.out, but this
throws a segment violation.

Now, one step more, as you told me, I add adainit() and adafinal()
to my C code, but I cannot compile. I haven't found any .h C header
which contains these procedures.

I can see this .h headers in:

/usr/gnat/lib/gcc-lib/i686-pc-linux-gnu/2.8.1/adainclude

a-ada.a-ada.h  a-adaint.h  a-raise.h  a-types.h  config.h

but none if them contains any adainit() or adafinal() procedure.

What should I add to my progC.c code to let gcc compile ???

*** I have a Debian 3.0 with gcc 3.3.2 and gnat 3.15p installed.


Thank you. I promise I have tried many things to resolve this without
results.

--
Antonio Martï¿œnez




  parent reply	other threads:[~2003-10-21 16:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-20 23:13 Interfacing C and Ada95 Antonio Martínez
2003-10-21  2:02 ` David Marceau
2003-10-21  4:57   ` sk
2003-10-21 15:00 ` Stephen Leake
2003-10-21 22:16   ` Simon Wright
2003-10-21 16:04 ` Antonio Martínez [this message]
2003-10-21 17:26   ` sk
replies disabled

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