Coder's Guild Mailing List

Re: Problem with DJGPP

Posted by Frank Hale on 1999-09-03

> Now if I write the main function on List.cc it works
> fine. Also, if i put it
> on the the List_test.cc file and #include "list.cc";
> but if i change it to
> #include "list.h" i get a bunch of error messages
> like:
> 

Yes I've had the same problem. From my experience in
this matter you can't separate a templated class and
its implementation. You either define all of it inside
a header file or define all of it in a source file.
But you can't separate the class declaration and its
implementation if it uses templates.

Frank

===
From: Frank Hale
ICQ: 7205161
Webpage: http://jade.netpedia.net/sapphire
Webpage: http://www.linuxstart.com/~frankhale

"Sapphire - a new window manager for the X Windows System"
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com