comp.lang.ada
 help / color / mirror / Atom feed
From: grave <grave@ipnsun5.in2p3.fr>
To: "Clifford R. Conover" <RConover@montana.edu>
Subject: Re: ADA compile problem
Date: 1998/11/12
Date: 1998-11-12T00:00:00+00:00	[thread overview]
Message-ID: <364A8EA2.51B8@ipnsun5.in2p3.fr> (raw)
In-Reply-To: 364A29DB.66614BE2@montana.edu

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
<snip>
> b_hello.o(.text+0x37): undefined reference to `gnat_argc'
<snip>
> 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




      reply	other threads:[~1998-11-12  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-11  0:00 ADA compile problem Clifford R. Conover
1998-11-12  0:00 ` grave [this message]
replies disabled

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