This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: static const class member is undefined
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: Erdi Chen <erdi at chen11 dot com>
- Cc: gcc at gnu dot org
- Date: Sat, 20 Dec 2003 09:39:33 +0100
- Subject: Re: static const class member is undefined
- References: <3FE3F46C.4000909@chen11.com>
> 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