[omniORB] Circular inclusion of IDL-files...

ANOQ of the Sun anoq@vip.cybercity.dk
Fri, 28 Aug 1998 15:32:35 +0200


Sai-Lai Lo wrote:
>
> Try this:
>
> ------------------------------- ------------
> // File: Node.idl
> interface Document;
>
> interface Node
> {
>   readonly attribute Document ownerDocument;
> };
>
> --------------------------------------------
>
> --------------------------------------------
> //File: Document.idl
>
> #include "Node.idl"
>
> interface Document : Node
> {
>   void f();
> };
> --------------------------------------------
>
> $ omniidl2 -I. Node.idl
> $ omniidl2 -I. Document.idl
>
> Sai-Lai

Doing this, omniidl2 works fine... However when I try to compile the
*SK files using EGCS1.0.2 (perhaps I need a newer EGCS?), I get
messages like this:

NodeSK.cc: In method `class Document * _lc_proxy_Node::ownerDocument()':

NodeSK.cc:2523: no method `Document::unmarshalObjRef'
NodeSK.cc:2560: no matching function for call to `CORBA::release
(Document *&)'
/usr/local/omniORB/include/omniORB2/CORBA.h:2203: candidates are:
CORBA::release(CORBA::Request *)
/usr/local/omniORB/include/omniORB2/CORBA.h:2202:
CORBA::release(CORBA::NVList *)
/usr/local/omniORB/include/omniORB2/CORBA.h:2201:
CORBA::release(CORBA::NamedValue *)
/usr/local/omniORB/include/omniORB2/CORBA.h:2200:
CORBA::release(CORBA::ORB *)
/usr/local/omniORB/include/omniORB2/CORBA.h:2199:
CORBA::release(CORBA::BOA *)
/usr/local/omniORB/include/omniORB2/CORBA.h:2193:
CORBA::release(CORBA::Object *)
/usr/local/omniORB/include/omniORB2/CORBA.h:2191:
CORBA::release(CORBA::Principal *)
/usr/local/omniORB/include/omniORB2/CORBA.h:2190:
CORBA::release(CORBA::Context *)
/usr/local/omniORB/include/omniORB2/CORBA.h:2189:
CORBA::release(CORBA::Environment *)
/usr/local/omniORB/include/omniORB2/CORBA.h:2185:
CORBA::release(CORBA::TypeCode *)
NodeSK.cc:2584: no matching function for call to `CORBA::release
(Document *&)'
/usr/local/omniORB/include/omniORB2/CORBA.h:2203: candidates are:
CORBA::release(CORBA::Request *)
/usr/local/omniORB/include/omniORB2/CORBA.h:2202:
CORBA::release(CORBA::NVList *)
/usr/local/omniORB/include/omniORB2/CORBA.h:2201:
CORBA::release(CORBA::NamedValue *)
/usr/local/omniORB/include/omniORB2/CORBA.h:2200:
CORBA::release(CORBA::ORB *)
/usr/local/omniORB/include/omniORB2/CORBA.h:2199:
CORBA::release(CORBA::BOA *)
/usr/local/omniORB/include/omniORB2/CORBA.h:2193:
CORBA::release(CORBA::Object *)
/usr/local/omniORB/include/omniORB2/CORBA.h:2191:
CORBA::release(CORBA::Principal *)
/usr/local/omniORB/include/omniORB2/CORBA.h:2190:
CORBA::release(CORBA::Context *)
/usr/local/omniORB/include/omniORB2/CORBA.h:2189:
CORBA::release(CORBA::Environment *)
/usr/local/omniORB/include/omniORB2/CORBA.h:2185:
CORBA::release(CORBA::TypeCode *)


Cheers
--
,
ANOQ of the Sun / Johnny Andersen

E-Mail:   anoq@vip.cybercity.dk or anoq@berlin-consortium.org
Homepage: http://users.cybercity.dk/~ccc25861/