Path: chuka.playstation.co.uk!news From: gwald Newsgroups: scee.yaroze.freetalk.english Subject: Re: Why won't this link? Date: Thu, 01 Mar 2001 13:52:49 -0800 Organization: PlayStation Net Yaroze (SCEE) Lines: 56 Message-ID: <3A9EC4B0.AD349076@start.com.au> References: <97kf5l$i7g5@www.netyaroze-europe.com> Reply-To: gwald@start.com.au NNTP-Posting-Host: 073.0108.brs.iprimus.net.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en Hi Okay , I'm not on my Yaroze programming machine but of the top of my head, I remember useing ar.exe to extract libps.a mods and added some modules into libsngcc.a or something like this, because it uses only libsngcc.a to link and not libps.a. Sorry i can't remember which but it didn't take long. make sure u keep a backup of everything and just experiment. Buena suerte! ~mgarcia Peter wrote: > Hi guyz, > > I'm using the Gygwin (MIPS variant) C++ compiler. I can the following > program to compile but I just can't get it to link. Every time I try I get > the following error. > > gcc -Xlinker -Ttext -Xlinker 80140000 main.o object.o -o main.exe > \psx3\mips-unknown-ecoff\lib/libsngcc.a(new_hand.o): In function > `__default_new_handler': > libgcc2.c(.text+0x3c): undefined reference to `_exit' > libgcc2.c(.text+0x3c): relocation truncated to fit: JMPADDR _exit > > Main.cpp looks as follows: > > #include > #include "object.h" > > int main (void) > { > Object* ptrObject = new Object("blip"); > ResetGraph(0); > } > > The Object class is defined as follows: > > class Object > { > protected: > char* message; > > public: > Object() {}; > Object(char* string); > }; > > My coding is very rusty so I may be missing something but I'm sure this > should work. Its also 3 in the morning and my brain shut down > about...actually come to think of it I don't remember it starting up :) > > Hugz, Peter