comp.lang.ada
 help / color / mirror / Atom feed
From: Preben Randhol <randhol+abuse@pvv.org>
Subject: Re: Ada newbie: GNAT linking error question
Date: Mon, 12 May 2003 08:52:57 +0000 (UTC)
Date: 2003-05-12T08:52:57+00:00	[thread overview]
Message-ID: <slrnbbuo6g.mi7.randhol+abuse@kiuk0152.chembio.ntnu.no> (raw)
In-Reply-To: knml9b.u54.ln@ID-133390.user.dfncis.de

Sascha Wilde wrote:
> I just tried to build the tetris example from
> 
> http://www.tc.umn.edu/~puk/tetris.txt
> 
> but the build fails during linking, saying:
> 
>     gnatlink tetris.ali
>     b~tetris.o: In function `main':
>     b~tetris.o(.text+0x489): undefined reference to `_ada_tetris'
>     collect2: ld returned 1 exit status
>     gnatlink: cannot call /usr/local/bin/gcc
>     gnatmake: *** link failed.

gnatmake atetris

> I'm not shure if this is here quite on-topic, because it might be more
> a gnat than a Ada problem.  Please tell me if I'm OT here.

No it is neither OT nor an Ada problem. It is just that you have to
compile on of the atetris.ads, otetris.ads, wtetris.ads files depending
on your system.

Read the atetris.ads to see why.

-- 
Preben Randhol                    http://www.pvv.org/~randhol/



  parent reply	other threads:[~2003-05-12  8:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-11 14:29 Ada newbie: GNAT linking error question Sascha Wilde
2003-05-11 18:05 ` Martin Krischik
2003-05-11 20:14   ` Sascha Wilde
2003-05-12  7:29 ` Frank Piron
2003-05-12  8:52 ` Preben Randhol [this message]
2003-05-12 18:34   ` Sascha Wilde
  -- strict thread matches above, loose matches on Subject: below --
2003-05-12  8:59 Gautier direct_replies_not_read
replies disabled

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