[omniORB] omniidl compiler problem? (omniorbpy 2.1)

enrico.sirola at riskmap.it enrico.sirola at riskmap.it
Thu Aug 28 09:10:20 BST 2003


Hello,
omniidl refuses to compile the following IDL file:

----------> cut here (tree.idl) <----------

module tree {
    enum NodeKind {IsLeaf, IsNotLeaf};

    struct Node;
    union NodeContent;
    typedef sequence<Node> NodeSeq;
    typedef sequence<string> StringSeq;
    
    union NodeContent switch (NodeKind) {
    case IsLeaf:
	StringSeq itemCodes;
    case IsNotLeaf:
	NodeSeq childNodes;
    };

    struct Node {
	string tag;
	NodeContent nc;
    };

};

----------> end of file <----------

omniidl -bpython tree.idl fails as follow

$ omniidl.exe -bpython tree.idl
tree.idl:13: Cannot use sequence of forward-declared struct 'tree::Node' before it is fully defined
tree.idl:4:  ('Node' forward-declared here)
omniidl: 1 error.

Any clue?
Thanks, 
enrico
-- 
Enrico Sirola <enrico.sirola at riskmap.it>





More information about the omniORB-list mailing list