[omniORB] Circular inclusion of IDL-files...
Sai-Lai Lo
S.Lo@orl.co.uk
21 Aug 1998 16:12:47 +0100
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
>>>>> ANOQ of the Sun writes:
> 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?
--
Dr. Sai-Lai Lo | Research Scientist
|
E-mail: S.Lo@orl.co.uk | Olivetti & Oracle Research Lab
| 24a Trumpington Street
Tel: +44 223 343000 | Cambridge CB2 1QA
Fax: +44 223 313542 | ENGLAND