[omniORB] omniidl3 problem?

Janne Haverinen johannes@ees2.oulu.fi
Wed, 15 Dec 1999 09:27:47 +0200


Hi,

I get compilation errors when using following interface (only relevant
parts shown):

interface BMC {

      ...

     struct State
     {
          float fX;
          float fY;
          float fZ;
     };

      ...

     attribute  State Rotation;
     attribute  State Translation;

};

Here is one error:

../../../..//stub/BMCSK.cc:432: parse error before `&'
../../../..//stub/BMCSK.cc:433: prototype for `void
_objref_BMC::Rotation(...)' does not match any in class `_objref_BMC'
../../../../stub/BMC.hh:187: candidates are: void
_objref_BMC::Rotation(const struct BMC::State &)
../../../..//stub/BMCSK.cc:414:                 struct BMC::State
_objref_BMC::Rotation()

This is the prototype from BMCSK.cc:

void _objref_BMC::Rotation(const State& arg_0)
{
  _0RL_cd_697bfb3c3ca689ef_60000000
_call_desc(_0RL_lcfn_697bfb3c3ca689ef_80000000, "_set_Rotation", 14, 0,
arg_0);

  _invoke(_call_desc);
}

And here is the canditate from BMC.hh:

class _objref_BMC :
  public virtual CORBA::Object, public virtual omniObjRef
{
public:
...
  BMC::State Rotation();
  void Rotation(const BMC::State&);
  BMC::State Translation();
  void Translation(const BMC::State&);
...


Is this a omniidl3 problem or am I doing something wrong?

// Janne Haverinen