Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!pt.cs.cmu.edu!rochester!rit!tropix!moscom!ur-valhalla!uhura.cc.rochester.edu!sunybcs!rutgers!apple!bloom-beacon!athena.mit.edu!sorensen From: sorensen@athena.mit.edu (Alma G. Sorensen) Newsgroups: comp.lang.c++ Subject: Multiple inheritance problem Summary: Syntax for constructors? Message-ID: <12060@bloom-beacon.MIT.EDU> Date: 22 Jul 89 20:52:46 GMT Sender: daemon@bloom-beacon.MIT.EDU Reply-To: sorensen@athena.mit.edu (Alma G. Sorensen) Organization: Massachusetts Institute of Technology Lines: 20 p 199 of Stroustrup tells how to specify arguments for the base class's constructor when deriving one class from another. What is the syntax for specifying arguments to more than one derived class (e.g. multiple inheritence in g++ 1.35.0)? I tried just listing the different arguments ala BS, and get errors like: image.h:252: initializer for unnamed base class ambiguous image.h:252: (type `int2D' uses multiple inheritance) image.h:252: initializer for unnamed base class ambiguous image.h:252: (type `int2D' uses multiple inheritance) Thanks in advance. Greg Sorensen sorensen@imager.mit.edu or sorensen@athena.mit.edu