From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,76f120be5d26bfd8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-21 09:06:57 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news.agarik.com!news.agarik.com!teleglobe.net!teleglobe.net!62.81.31.29.MISMATCH!cyclone.auna.com!news-feeder.eresmas.com!garse!news.iddeo.es!not-for-mail From: =?iso-8859-1?q?Antonio_Mart=EDnez?= Newsgroups: comp.lang.ada Subject: Re: Interfacing C and Ada95 Date: Tue, 21 Oct 2003 18:04:45 +0200 Organization: Iddeo - Retevisi�n Message-ID: References: NNTP-Posting-Host: 62.83.178.231 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity. (Debian GNU/Linux)) Xref: archiver1.google.com comp.lang.ada:1303 Date: 2003-10-21T18:04:45+02:00 List-Id: > David Marceau : > > ... ... > > 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