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]
Other format: [Raw text]

[Bug c++/15935] Defining static [const] member variables of template class


------- Additional Comments From bangerth at dealii dot org  2004-06-17 13:24 -------
The reason weak symbols appear here is that if your OS _does_ support weak 
symbols, the definition of the template member can appear in a header 
file. However, if you don't have weak symbol support, then this would 
lead to multiple symbol definition errors, so one has to instantiate 
these variables one by one in some implementation file. 
 
Does the situation improve with newer versions of gcc? And what OS are you 
actually on? 
 
W. 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15935


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