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

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
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: <r7g42ug5f7p25teief4obkfk4oec096ssv@4ax.com>
References: <gloU7.231$sR3 DOT 23997 AT read2 DOT inet DOT fi>
NNTP-Posting-Host: modem-40.lyre-tailed-anthias.dialup.pol.co.uk
Mime-Version: 1.0
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" <triq AT mbnet DOT fi> 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.

- Raw text -


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