[omniORB] IR client compilation problems

Erling Ringen Elvsrud erling@killozap.com
Sun Jan 12 19:18:02 2003


Hi!

I'm experimenting a bit with IR and DII( at least trying to experiment).

I resolve the initial reference to the IR with the following code: 
CORBA::Object_var IR = 
   orb->resolve_initial_references("InterfaceRepository");

after that I try to narrow it to the CORBA::Repository interface type,
but the compiler cannot find the Repository type:

tester.cc:36: `Repository_var' undeclared (first use this function)

line 36 looks like this: 
Repository_var repPtr = CORBA::Repository::_narrow( IR );

I have also added the #define ENABLE_CLIENT_IR_SUPPORT

For the moment I use the IR from fnorb( a python orb ), I don't know if it
is suitable but I probably find out when( if ) the code compiles. 
I have tried the other approach to access the IR too, through the
CORBA::Object interface, but I have the same problems finding out where
InterfaceDef_var is declared.
Can you recommend some other IR if fnorb is unsuitable? mico's?
as I alredy use omniORB 4.0 I hope I don't have to return to 3.x to be
able to use omniifr( as it seems to be developed for the 3.x versions )

Thanks in advance

Erling

-- 
Erling Ringen Elvsrud
PGP/GPG Key: http://www.killozap.com/hmm/gpg_public_key.txt