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,890f0efb42e0c802 X-Google-Attributes: gid103376,public From: grave Subject: Re: ADA compile problem Date: 1998/11/12 Message-ID: <364A8EA2.51B8@ipnsun5.in2p3.fr>#1/1 X-Deja-AN: 411002816 Content-Transfer-Encoding: 7bit References: <364A29DB.66614BE2@montana.edu> To: "Clifford R. Conover" Content-Type: text/plain; charset=us-ascii Organization: I.P.N Orsay Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-11-12T00:00:00+00:00 List-Id: Clifford R. Conover wrote: > > I'm having a little trouble getting GNAT to run on my RedHat 5.2 box. > > I followed your directions about building that object using this script > > #!/bin/tcsh -f > foreach f (../adainclude/*.ad[bs]) > gcc -c -O2 -gnatg -I- $f > end > Don't you need to add the c part of it ? (gnat 3.10p) a-adaint.c a-raise.c a-argv.c a-sysdep.c a-cio.c a-time.c a-cstrea.c a-trans.c a-deftar.c a-trans3.c a-errno.c a-trans4.c a-exit.c a-uintp.c ... > Then I executed: > mv libgnat.a libgnat.a.old > ar q libgnat.a *.o > rm *.o > ranlib libgnat.a > Then I tried to build the hello example program and got these errors: > [rconover@testb examples]$ gnatmake hello.adb > b_hello.o(.text+0x37): undefined reference to `gnat_argc' > In function `system__task_specific_data__destroy_tsd': > s-taspda.o(.text+0x16b): undefined reference to > `__gnat_raise_constraint_error' > s-taspda.o(.text+0x181): undefined reference to `__gnat_free' > gnatmake: *** link failed. > For example : __gnat_raise_constraint_error is in a-raise.c gnat_argc is in a-argv.c Hope it will help... xavier