templates undefined refrence problem

Jeff Dever jsdever@sympatico.ca
Mon Feb 18 12:10:00 GMT 2002


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.

Thanks!


mike stump wrote:

> > Date: Mon, 18 Feb 2002 09:28:44 -0500
> > From: Jeff Dever <jsdever@sympatico.ca>
> > To: gcc@gcc.gnu.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++.



More information about the Gcc mailing list