The interfaces are defined in header files, and the implementation
(functions) are defined in cpp files.

Timothy Dean
MobileDataforce

"Alexey Tikhvinsky" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Is templates completely defined in headers?
>
> On Wed, 29 Sep 2004 17:24:35 -0600, Timothy Dean
> <[EMAIL PROTECTED]> wrote:
>
> > I have created a template for managing a doubly linked list of pointers
> > to
> > any data type.  I then created a position object, which is also a
> > template,
> > to maintain my position in the list.  Everything compiles fine, but I
get
> > all kinds of linker errors.  One example of a linker error is:
> >
> > "GroupList.cpp: 'CPosition<CGroup>::~CPosition()' referenced from
> > 'CGroupList::~CGroupList()' is undefined.
> >
> > Its almost as if the compiler didn't automatically instansiate the
> > template.
> > Am I missing something?
> >
> > Timothy Dean
> > MobileDataforce
>
> -- 
> Alexey Tikhvinsky
> mailto:[EMAIL PROTECTED]
> ECTACO, Inc.
> http://www.ectaco.com
> http://www.lingvosoft.com
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to