This is the mail archive of the
mailing list for the GCC project.
Re: templates undefined refrence problem
- From: Jeff Dever <jsdever at sympatico dot ca>
- To: mike stump <mrs at windriver dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 18 Feb 2002 14:11:31 -0500
- Subject: Re: templates undefined refrence problem
- References: <200202181903.LAA01430@kankakee.wrs.com>
Okay, that worked. Its pretty ugly having implementation in my header
files, and I'm not creating nice intermediate .o files anymore, but at
least it compiles and runs. I didn't realize that was industry practice
I'm surprised that this was not a FAQ answer. This issue does not appear
on the c++ faq as far as I could find with Google.
mike stump wrote:
> > Date: Mon, 18 Feb 2002 09:28:44 -0500
> > From: Jeff Dever <email@example.com>
> > To: firstname.lastname@example.org
> > I can't seem to be able to instantiate template classes of different
> > types. I am using a template class that contains another template
> > class with seperate definitions and declarations in headers and
> > implementation files for each class.
> > What am I doing wrong?
> Get rid of all .cc files, except main. Welcome to C++.