This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: two constructor copies in object file
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- To: "Rogelio M. Serrano Jr." <rogelio at evoserve dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 17 Jan 2002 13:25:57 -0200
- Subject: Re: two constructor copies in object file
- References: <E16R0Qi-000099-00@coffeesaur>
On Jan 16, 2002, "Rogelio M. Serrano Jr." <rogelio@evoserve.com> wrote:
> Why are the constructors created twice?
One to handle full-object construction, one to handle sub-object
construction, IIRC.
> and why is the static member undefined?
Because you didn't define it. Every static data member must be
defined outside the class body, in addition to being declared inside
it.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me