Template Instantiation problem

Andy Rysin arysin@yahoo.com
Fri Mar 10 17:28:00 GMT 2000


> 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


More information about the Gcc-bugs mailing list