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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6cc079ad718119ff X-Google-Attributes: gid103376,public From: michael@ifr.luftfahrt.uni-stuttgart.de Subject: Re: Calling Ada (GNAT) from C programs... Date: 1996/04/01 Message-ID: <4joddr$32jc@info4.rus.uni-stuttgart.de>#1/1 X-Deja-AN: 145213976 references: <4jcb30$8kc@dfw.dfw.net> organization: Comp.Center (RUS), U of Stuttgart, FRG newsgroups: comp.lang.ada Date: 1996-04-01T00:00:00+00:00 List-Id: 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)