Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: Joshua Meeds Newsgroups: scee.yaroze.freetalk.english Subject: Re: ARS 2.0 with Gnu Date: Wed, 22 Jul 1998 22:28:21 -0700 Organization: SCEA News Server Lines: 53 Message-ID: <35B6C9F5.B1EC5F4D@sinclair.net> References: <35B58D32.2A241BA6@sinclair.net> <01bdb54a$280ba0e0$f30b0a0a@Angela1.intelligent-group.com> NNTP-Posting-Host: dreamer.sincom.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.05 [en] (Win95; I) Craig Graham wrote: > > > Don't use cg_bload. It doesn't work. Use open/read/close instead. > Ah, thanks for the tip. > > Do I have to specially link the ARS lib in? If so, how? The docs show > > to add a couple things to the GCC line, but I still get the messages. > > How exactly are you compiling (exact command line to GCC)? > You have to put "libar.a" in your libs directory (where "libps.a" is), and > use the switchs: > > gcc -DAR_DEBUG main.c -lar > > The "-lar" switch will link in the lib for you. > I am putting those switches in, and libar.a is in the libs directory. Right now (I restarted the program from scratch), I am only using two functions, cg_fsinit() and cg_shutdown(), doing printf's in between (plus some graphic stuff that isn't related). No matter how I set things up, I get this: Infinity.c:80: undefined reference to `cg_shutdown' Infinity.c:80: relocation truncated to fit: JMPADDR cg_shutdown If I do a #define AR_DEBUG, I also get: Infinity.c:27: undefined reference to `cg_fsinit' Infinity.c:27: relocation truncated to fit: JMPADDR cg_fsinit If I don't do a #define AR_DEBUG, and I remark out the cg_shutdown(), it compiles with no errors. Any ideas? Thanks, -- - Joshua Meeds Dreamwriter Dragon dreamer@sinclair.net -=UDIC=- _____________________________________ We are the music-makers, And we are the dreamers of the dreams - Willy Wonka quoting Arthur O'Shaughnessy