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::List(void)" means that 1) one of your files is trying to construct a List without argument, eg: List v; 2) There doesn't seem to be a constructor for List 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 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::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/