[omniORB] interface repository

Duncan Grisby duncan@grisby.org
Fri, 10 May 2002 10:50:31 +0100


On Tuesday 7 May, "Svetlana G. Shasharina" wrote:

> This code would not compile in omniORB4:
> 
> CORBA::Object_var obj = orb->resolve_initial_references
>                           ("InterfaceRepository");
> Repository_var repPtr = CORBA::Repository::_narrow(obj);

I know that you have already figured this out, but I'm posting for the
benefit of anyone else with the same problem. First, you have to set
the define ENABLE_CLIENT_IR_SUPPORT before #including any CORBA
related headers. Otherwise the definitions aren't included. That's
just done to avoid the compile-time overhead of processing the huge IR
stub headers if they aren't needed.

Secondly, you need to qualify the types as CORBA::Repository_var, etc.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan@grisby.org     --
   -- http://www.grisby.org --