This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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?
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]