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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a059f028fb9c35d3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-12 01:52:58 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!rip!c03.atl99!news.webusenet.com!ngpeer.news.aol.com!newsfeed1!bredband!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Ada newbie: GNAT linking error question Date: Mon, 12 May 2003 08:52:57 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: NNTP-Posting-Host: kiuk0152.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1052729577 3983 129.241.83.78 (12 May 2003 08:52:57 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Mon, 12 May 2003 08:52:57 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:37228 Date: 2003-05-12T08:52:57+00:00 List-Id: 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/