www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/12/20/11:33:15

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "Timo Inki" <triq AT mbnet DOT fi>
Newsgroups: comp.os.msdos.djgpp
Subject: Undefined references(errors) with my own class
Lines: 13
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Message-ID: <gloU7.231$sR3.23997@read2.inet.fi>
Date: Thu, 20 Dec 2001 16:29:00 GMT
NNTP-Posting-Host: 62.71.195.74
X-Trace: read2.inet.fi 1008865740 62.71.195.74 (Thu, 20 Dec 2001 18:29:00 EET)
NNTP-Posting-Date: Thu, 20 Dec 2001 18:29:00 EET
Organization: Sonera corp Internet services
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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

Timo Inki




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019