two constructor copies in object file

Alexandre Oliva oliva@lsd.ic.unicamp.br
Thu Jan 17 08:19:00 GMT 2002


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



More information about the Gcc mailing list