[omniORB] CosTrading and omniidl

Duncan Grisby dgrisby@uk.research.att.com
Mon, 30 Jul 2001 14:55:14 +0100


On Monday 30 July, Adam Cassar wrote:

> The idl I downloaded from the omg site containes

The IDL for all the COS services is included in the omniORB
distribution in $TOP/idl/COS/ . The stubs for most of it, including
CosTrading, are built into the libCOS library.

> #include <orb.idl>
> 
> Removed the include, and whiola, the idl compiles just file! 
> Is the above include superfluous?

The CORBA spec says that before you can use CORBA::TypeCode in IDL,
you must #include <orb.idl>. omniORB does not require that you do
that, but it does provide an empty orb.idl file in $TOP/idl, so files
#including it should work. Removing the #include works, but so does
adding $TOP/idl to the omniidl include path.

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --