Path: chuka.playstation.co.uk!news From: "Peter" Newsgroups: scee.yaroze.freetalk.english Subject: Why won't this link? Date: Thu, 1 Mar 2001 03:24:12 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 44 Message-ID: <97kf5l$i7g5@www.netyaroze-europe.com> Reply-To: "Peter" NNTP-Posting-Host: host213-1-151-182.btinternet.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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