cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/21/14:53:09

Date: Thu, 21 Oct 1999 06:50:04 -0700
Message-Id: <199910211350.GAA05393@www1.xoommail.com>
X-Loop: xoommail.com
From: Brian Ronk <rithe AT xoommail DOT com>
Subject: Re: Template problem
To: djgpp AT delorie DOT com
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com

This is a MIME encoded message.

----------------380f1a0c
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Davin McCall et.al. wrote:
 > Posting your source code wouldn't be a bad start.
I attached it as a file, just because it's so big.  If that's a problem 
let me know, and I'll post it in an e-mail.
 > 
 > 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;
List<int> list;  This is the exact line for declaring my list in my test 
program.
 > 2) There doesn't seem to be a constructor for List<int> with no
 > parameters, so perhaps you didn't write one.
 >
No, I have only one constructor, and it is blank. 
 > (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?
 > 
Yes, I saw that you answered my first e-mail.  I thought I replied to 
that one, but didn't see an answer, so I re-posted.
 > Davin.

Thanks again.  Brian Ronk

______________________________________________________
Get your free web-based email at http://www.xoom.com
Birthday? Anniversary? Send FREE animated greeting
cards for any occasion at http://greetings.xoom.com


----------------380f1a0c
Content-Type: application/octet-stream; name="list.h"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="list.h"
Content-MD5: Ftpw0vSEWe5suJzbfaTWHQ==

LyoNCglMaXN0LmggLSBMaXN0IGNsYXNzIGhlYWRlciBmaWxlDQogICBDb3B5cmlnaHQgMTk5
OSwgQnJpYW4gdC4gUm9uaw0KICAgMTAvNi8xOTk5IC0gQ3JlYXRlZCBMaXN0IGNsYXNzDQog
ICAxMC83LzE5OTkgLSBBZGRlZCBzb21lIG1vcmUgZnVuY3Rpb25zDQogICAxMC8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