www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/20/02:13:04

From: DavMac AT iname DOT com (Davin McCall)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Template problem
Date: Wed, 20 Oct 1999 04:12:07 GMT
Organization: Monash Uni
Lines: 38
Distribution: world
Message-ID: <380d4038.3594324@newsserver.cc.monash.edu.au>
References: <199910191416 DOT HAA19164 AT www2 DOT xoommail DOT com>
NNTP-Posting-Host: damcc5.halls.monash.edu.au
X-Trace: towncrier.cc.monash.edu.au 940392728 417 130.194.198.138 (20 Oct 1999 04:12:08 GMT)
X-Complaints-To: abuse AT monash DOT edu DOT au
NNTP-Posting-Date: 20 Oct 1999 04:12:08 GMT
X-Newsreader: Forte Free Agent 1.1/32.230
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Posting your source code wouldn't be a bad start.

If you refuse to do that, know this:
"undefined reference to List<int>::List(void)" means that
1) one of your files is trying to construct a List<int> without
argument, eg:
	List<int> v;
2) There doesn't seem to be a constructor for List<int> with no
parameters, so perhaps you didn't write one.

(you wrote:)
>I don't know if anyone answered my question 
>before, so I'll ask it again.

What does that mean anyway? Did you *check* if someone answered your
question?

Davin.


On Tue, 19 Oct 1999 07:16:30 -0700, Brian Ronk <rithe AT xoommail DOT com>
wrote:

>  I have a problem 
>with a List class that uses templates.  As far as 
>I can tell everything is correct.  It compiles to 
>the .exe fine, or maybe it happens when the 
>linking occurs...  Ok, it doesn't make the .exe, 
>so that would mean that the error occurs when it's 
>linking.  The error that I am getting is:
>undefined reference to 'List<int>::List(void)'.  
>That isn't the only one, but they all are the 
>same, just with different functions in my class.  
>Does someone have an idea of what I should do?

__________________________________________________________
       *** davmac - sharkin'!! davmac AT iname DOT com ***
my programming page: http://yoyo.cc.monash.edu.au/~davmac/

- Raw text -


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