Path: chuka.playstation.co.uk!news From: "Derek da Silva" Newsgroups: scee.yaroze.freetalk.english Subject: makefiles Date: Fri, 16 Mar 2001 14:23:39 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 26 Message-ID: <98t7po$6f3@www.netyaroze-europe.com> NNTP-Posting-Host: usr1719-avo.cableinet.co.uk X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Hi all I've switched from CodeWarrior to the GNU C++ compiler. I'm a bit crap at all this makefile business (despite reading Martin's excellent explanation). I've attached a small project and it's makefile to this thread. Can anyone take a look and point out where I'm going wrong? cheers Derek gcc -c -O3 -Wall main.cpp gcc -Xlinker -Map -Xlinker mapfile -Xlinker -Ttext -Xlinker 80100000 main.o _exit.o gs_object.o gs_random.o -o xenon main.o: In function `main': main.cpp(.text+0x2c): undefined reference to `gsCRandom::gsCRando(void)' main.cpp(.text+0x2c): relocation truncated to fit: JMPADDR gsCRandom::gsCRandom(void) main.cpp(.text+0xe0): undefined reference to `gsCRandom::~gsCRando(void)' main.cpp(.text+0xe0): relocation truncated to fit: JMPADDR gsCRandom::~gsCRandom(void)