[omniORB] Conflict with "StructMember"

David Riddoch djr@uk.research.att.com
Thu, 15 Apr 1999 14:28:30 +0100 (GMT)



You do not need to include ir.idl to use TypeCode. It is automatically
pre-defined by the compiler. You should refer to it with its fully
qualified name, CORBA::TypeCode.

David


On Wed, 14 Apr 1999, Mike Ladwig wrote:

> Hi.  I am porting some code from Orbix, and have had generally decent
> luck so far.  I am stuck, however, on a problem porting my
> implementation of the Query service.  I've looked in the mailing list
> archives without luck.
> 
> In my "CosQuery.idl" file, I need the definition of TypeCode, so I
> include "ir.idl" to get it.  The idl compiler generates a stub/skeleton
> file that includes the generated "CosQuery.hh" file, which in turn
> includes "ir.hh".
> 
> The "ir.hh" file includes both CORBA.h and corbaidl.hh.  These files
> both attempt to define several conflicting names (starting with
> ::CORBA::StructMember), and my compilation fails.
> 
> Any suggestions?  I'm sure I'm missing something because this seems to
> be a common thing to wish to accomplish, but I can't figure out what...
> 
> Thanks,
> mike.
> 
>