[omniORB] Multiple inheritance in implementation classes. How?

Duncan Grisby dgrisby@uk.research.att.com
Wed, 12 Jan 2000 15:37:03 +0000


On Wednesday 12 January, Erwin Hogeweg wrote:

> How do I inherit an implementation class from a skeleton AND from some
> other class?
> 
> If I try:
>     class MyClass_i:public virtual _sk_MyClass, public virtual QObject
> 
> I get linking errors saying:
>     undefined reference to 'MyClass_i::omniObject virtual table'
>     undefined reference to 'MyClass_i::CORBA::Object virtual table'
>     undefined reference to 'MyClass_i::MyClass virtual table'
>     undefined reference to 'MyClass_i::QObject virtual table'
>     undefined reference to 'MyClass_i virtual table'

What you're trying to do should work fine. Complaints from gcc about
missing virtual tables are usually a sign that you've declared a
virtual destructor for a class but not implemented it.

HTH,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --