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? -- View this message in context: http://www.nabble.com/Empty-class-for-implementation-tp22153864p22153864.html Sent from the gcc - Help mailing list archive at Nabble.com.