comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: cocor_ada: Sets, FileIO?
Date: Wed, 10 Aug 2016 17:58:17 +0100
Date: 2016-08-10T17:58:17+01:00	[thread overview]
Message-ID: <ly4m6s36ja.fsf@pushface.org> (raw)
In-Reply-To: e10n69Fu996U1@mid.individual.net

hreba <f_hreba@yahoo.com.br> writes:

> I am stuck
> at the last step:
>
>> gcc cr.o -o acr
>
> I get a large number of "undefined reference errors", starting with
>
> /usr/lib/x86_64-linux-gnu/crt1.o: In function `_start':
> (.text+0x20): undefined reference to `main'
> cr.o: In function `_ada_cr':

The problem is that gprbuild (which Pascal was using) can be very
misleading about the command lines it actually issues.

So when Pascal said

$ gprbuild -P acr.gpr -aP /usr/local/xnadalib-2016/share/gpr
gcc -c fileio.adb
fileio.adb:529:16: warning: index for "ext" may assume lower bound of 1
fileio.adb:529:16: warning: suggested replacement: "ext'First"
fileio.adb:529:42: warning: index for "ext" may assume lower bound of 1
fileio.adb:529:42: warning: suggested replacement: "ext'First"
gcc -c sets.adb
gprbind cr.bexch
gnatbind cr.ali
gcc -c b__cr.adb
gcc cr.o -o acr

all those lines are just a hint of what was actually going on; you need
to call gprbuild to manage the process.


      reply	other threads:[~2016-08-10 16:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-29 14:40 cocor_ada: Sets, FileIO? hreba
2016-08-02 18:51 ` p.p11
2016-08-03  8:28   ` hreba
2016-08-03 17:41     ` p.p11
2016-08-04 12:08       ` hreba
2016-08-10 13:06       ` hreba
2016-08-10 16:58         ` Simon Wright [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