Topic: basic template question
Author: SHELDEN <shelden@carbon.lehman.com>
Date: 1998/11/18 Raw View
I have instatiaed a template class in one function and am passing it by
reference to a method of a non-template class. When I subsequently call
methods of the template class from the non-template method I get linker
errors "symbol not found". The weird thing is that this isn't
consistent, for some methods of the template class it doesn't occur and
for others it occurs.. also the population of these two groups isn't
stable.
Example:
A) Instantiation of template class within func1
lbelist<cf_event> CFEventobj=lbelist (); // default constructor
B) Func2's call from func1
if (taudlobjp->driver (CFEventobj, trdid_buf, debug))
where
C) Func2's header is
int canclist :: driver (lbelist<cf_event>& CFEventobj, char *trdid, char
*debug)
D) Summary, when I specify that some of CFEvenobj's member funcs are to
be called from func2 I am getting "symbol not found" linker errors for
some of them, and am puzzled regarding what is going on.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]