I have two *.IDL files, where I have to deal with cyclic dependency:
#ifndef __USER_IDL__
#define __USER_IDL__
#include "Group.idl"
interface User
{
typedef<sequence> Groups;
Groups getGroups();
void setGroups(in Groups u);
};
#endif
#ifndef __GROUP_IDL__
#define __GROUP_IDL__
#include "User.idl"
interface Group
{
typedef<sequence> Users;
Users getUser();
void setUsers(in Users u);
};
#endif
I need to keep it in separate files, how to solve it?
Check out my files: http://www32.zippyshare.com/v/32255598/file.html (I added there a Makefile, so simply run command: "make all") - the errors I get are:
omniidl -bcxx User.idl Group.idl:8: Syntax error in interface body Group.idl:8: Error in look-up of 'Users': 'Users' not found Group.idl:9: Error in look-up of 'Users': 'Users' not found Group.idl:10: Error in look-up of 'Users': 'Users' not found User.idl:8: Syntax error in interface body User.idl:8: Error in look-up of 'Groups': 'Groups' not found User.idl:9: Error in look-up of 'Groups': 'Groups' not found User.idl:10: Error in look-up of 'Groups': 'Groups' not found omniidl: 8 errors.