static const class member is undefined

Eric Botcazou ebotcazou@libertysurf.fr
Sun Dec 21 00:44:00 GMT 2003


> G++ creates undefined symbols for static const class member variables
> for the test code in the attached file.

It's ISO C++: class static data members must have a definition outside 
the class definition, even if they are const.

-- 
Eric Botcazou



More information about the Gcc mailing list