Path: chuka.playstation.co.uk!news From: "Graeme Evans" Newsgroups: scee.yaroze.freetalk.english Subject: Re: makefiles Date: Fri, 16 Mar 2001 16:15:21 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 44 Message-ID: <98tec2$6f7@www.netyaroze-europe.com> References: <98t7po$6f3@www.netyaroze-europe.com> NNTP-Posting-Host: host62-7-7-248.btinternet.com 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 Hello if i do a 'make' with the .o files you included in the archive, i get a similar message to the one you get, except the symbol names arent truncated (its gsCRandom::gsCRandom not CRando) If i delete all your .o files and start again, doing another make, the thing compiles and links without warning. My new .o files are the same as yours except my gs_random.o is 3008 bytes to your 556. Could this just be 'finger trouble'?? "Derek da Silva" wrote in message news:98t7po$6f3@www.netyaroze-europe.com... > 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) > > > > > >