Mail Archives: djgpp/1997/11/14/08:46:26
From: | steve DOT waddicor AT virgin DOT net
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Trying to get Templates to work (SLList)
|
Date: | Sun, 09 Nov 1997 20:46:53 GMT
|
Organization: | Virgin Net Usenet Service
|
Lines: | 18
|
Message-ID: | <346615c3.9438511@news.virgin.net>
|
NNTP-Posting-Host: | 194.168.70.112
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Attached is my first attempt at using templates with DJGPP. It fails
during linking with the error message:
Creating: planet.exe
Error: 3dotest.o: In function `SLList<int>::~SLList(void)':
3dotest.cc(93) Error: undefined reference to `BaseSLList::clear(void)'
Has anyone any idea what the problem is. I've looked at the FAQ,
Info, and dejanews, but I'm obviously missing something.
#include <sllist.h>
main()
{
SLList<int> list;
}
- Raw text -