This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Template Instantiation problem


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]