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

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Thu Jun 17 13:25:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list