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

ANOQ of the Sun anoq@vip.cybercity.dk
Thu, 20 Aug 1998 22:23:07 +0200


Hi!


I just subscribed to this list, because I have a question.
I'm implementing the DOM-spec <http://www.w3c.org/DOM/>
for the Berlin-project <http://www.berlin-consortium.org/>.

The problem is as follows:


In one file called Document.idl i have this code:

>#include "Node.idl"
>
>interface Document : Node
>{
>  //blah blah...
>};

In another file called Node.idl I have this code:

>interface Document;
>
>#include "Document.idl"
>
>interface Node
>{
>   readonly attribute Document ownerDocument;
>};

omniidl2 won't compile this nomatter in which order I include
the files and which interfaces I forward.

This is a bug in either omniidl2 or the IDL-specs right?

Inclusion quards (#ifndef blah #define blah ...) doesn't
seem to work either, as they do in C++. Perhaps this
is the real problem?

What do you people think?


Cheers
-- 
,
ANOQ of the Sun / Johnny Andersen

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