Pytałem na stackoverflowie ale co dziwne nikt mi nie odpowiedział, więc może tutaj ktoś coś podpowie. Mam 2 pliki *.IDL i mam cykliczną zależność w obu:
#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
Całość : http://www32.zippyshare.com/v/32255598/file.html (z Makefilem, wystarczy dać make all), używam OmniORBa dla C++ tak btw.
Dostaję błędy przez te includy jak mniemam:
omniidl -bcxx User.idl Group.idl Syntax error in interface body Group.idl Error in look-up of 'Users': 'Users' not found Group.idl Error in look-up of 'Users': 'Users' not found Group.idl Error in look-up of 'Users': 'Users' not found User.idl Syntax error in interface body User.idl Error in look-up of 'Groups': 'Groups' not found User.idl Error in look-up of 'Groups': 'Groups' not found User.idl Error in look-up of 'Groups': 'Groups' not found omniidl: 8 errors.
Jak to rozwiązać?