X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Jason Green Newsgroups: comp.os.msdos.djgpp Subject: Re: Undefined references(errors) with my own class Date: Thu, 20 Dec 2001 20:19:30 +0000 Lines: 12 Message-ID: References: NNTP-Posting-Host: modem-40.lyre-tailed-anthias.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news6.svr.pol.co.uk 1008879604 30448 62.137.39.40 (20 Dec 2001 20:20:04 GMT) NNTP-Posting-Date: 20 Dec 2001 20:20:04 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Agent 1.7/32.534 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Timo Inki" wrote: > I can't solve this. > Gcc doesn't complain, but linker gives 'undefined reference' from every > function in my own class like: > game.o:(text+0x67): Undefined reference: SPRITE::draw > Only my own functions do this (they are in .h and code for functions, > classes in .cpp), but extern things from another .cpp work. > GCC 3.0.2 and DJGPP 2.03 Binutils 2.11.2 Post the smallest example you can make to demonstrate the problem and the command(s) you are using, then someone is sure to help.