[omniORB] packaging stubs in a dll

Duncan Grisby dgrisby@uk.research.att.com
Tue, 04 Dec 2001 09:56:11 +0000


On Monday 3 December, "Hayes, Ted (London)" wrote:

> #pragma hh #ifndef XXXIDL_EXTERNAL_GUARD

[...]
> This works but I didn't like the idea of putting proprietary stuff in my
> IDL.  For example, when I try to build a client by running the same IDL
> through a Java IDL compiler, the pragmas generate warnings (a more
> unfriendly jidl could refuse to compile altogether I guess). 

You can always wrap them in #ifdef __OMNIIDL__ so other IDL compilers
don't see the pragmas.

The whole area of DLL linkage on Windows is a horrible mess. If anyone
can come up with a nice clean way of doing it, we'd be very
grateful...

Cheers,

Duncan.

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