[omniORB] Including CosLifeCycle

David Hyde davidh@cavendish.co.uk
Thu, 3 May 2001 15:34:53 +0100


I thought that I would derive one of my objects from CosLifeCycle, so I made
my idl something like the following:

#ifndef MY_IDL
#define MY_IDL

#include <CosLifeCycle.idl>

interface IMyIf : CosLifeCycle::LifeCycleObject
{
	...

and I comiled it with the following:

omniidl -bcxx -Wbh=_Omni.h -Wbs=_Omni.cpp  -ID:\OmniOrb\idl\COS My.idl

In the generated header I then get the following which as far as I can see
is erroneous:
#ifndef __CosNaming__Omni_h_EXTERNAL_GUARD__
#define __CosNaming__Omni_h_EXTERNAL_GUARD__
#include <CosNaming_Omni.h>
#endif
#ifndef __CosLifeCycle__Omni_h_EXTERNAL_GUARD__
#define __CosLifeCycle__Omni_h_EXTERNAL_GUARD__
#include <CosLifeCycle_Omni.h>
#endif

The files CosNaming_Omni.h and CosLifeCycle_Omni.h don't exist.

Is this my mistake?  What should I do differently?

Thanks

David