Path: chuka.playstation.co.uk!news From: Robert_Swan@scee.net (Robert Swan) Newsgroups: scee.yaroze.programming.gnu_compiler Subject: Re: undefined reference to Date: Wed, 23 Feb 2000 10:27:29 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 26 Message-ID: <38b3b5af.2600263@www.netyaroze-europe.com> References: <890bpa$6g2@chuka.playstation.co.uk> Reply-To: Robert_Swan@scee.net NNTP-Posting-Host: mailgate.scee.sony.co.uk X-Newsreader: Forte Free Agent 1.11/32.235 On Wed, 23 Feb 2000 01:11:45 -0000, "Rikki Prince" wrote: >Can anyone tell me why I keep getting a n 'undefined reference to...' error >when I try to compile my main.c file with three of my own archive/library >files? I've checked that the function is in the archive with nm.exe, and I >can't understand why I can't use the function in my main.c file. If you >think it would be worth posting the files here, I can, but I think it would >be quicker for someone just to tell me what's most likely to be causing the >error (unless of course it's a *really* general error that you get for >everything). > >Cheers, >Rikki > > could it be that you aren't including an extern to the function/ has the prototype got different arguments to what you are calling it with? Im only guessing as Im not sure what sort of error messages gnu gives (havent used it for a while) - Mind you, I dont think its that as it would probably assume a function signature Rob if noone else can answer might be worth putting up the files