This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.


[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: Namespace bug?



> Thank you, I guess this will fix it. In another thread, I read that this
> is the behaviour of EGCS to build the vtable if and only if it has all
> methods of the class present at compile-time (I can understand that, it
> is _really_ hard to build fractions of a vtable).

You must have misread that: It doesn't need all of them, it needs a
specific one (of course, applications shouldn't rely on that). It can
quite happily create a vtable with missing functions: the linker will
then complain about the missing functions.

As Mike points out, the standard requires you to define all virtual
functions of a class if you create instances of it.

Regards,
Martin