This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Template Instantiation problem
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Re: Template Instantiation problem
- From: Andy Rysin <arysin at yahoo dot com>
- Date: Fri, 10 Mar 2000 17:28:08 -0800 (PST)
- Cc: Tracy Vandeventer <tracy at col dot hp dot com>
> When the file Complex.c is compiled, a static class
variable is referenced:
>
>
> lnnk_ATTLC<complex>::pool
>
> This variable is undefined in the Complex.o file!
I think it should
> be a symbol with allocated memory in the DATA
segment of the object
> file.
> The symbol is declared in the file List.c:15. This
line ends up at
> line 1033 in the Complex.ii file.
Do you declare static class member besides declaring
it? C++ standard requires declaration of static
members. This should be true for templates also.
Good luck,
Andy
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com