This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Empty class for implementation
- From: Brian McGrew <brian at visionpro dot com>
- To: bastl73 <sebastian dot bw at freenet dot de>, <gcc-help at gcc dot gnu dot org>
- Date: Sun, 22 Feb 2009 17:22:35 -0800
- Subject: Re: Empty class for implementation
Can you show some code?
-b
On 2/22/09 4:51 PM, "bastl73" <sebastian.bw@freenet.de> wrote:
>
> I have now made an empty dummy class. The real classes now implements that
> dummy class and extend it like they need. So I have a basis to access all
> that classes with a dummy pointer.
> Now the linker says it has "undefined reference" of that dummy class and
> undefined reference to vtable.
> I think gcc does full optimisation and doesn't generate that empty dummy
> class.
> Is that a Bug?
>