[omniORB] packaging stubs in a dll

Renzo Tomaselli renzo.tomaselli@tecnotp.it
Tue, 4 Dec 2001 09:40:39 +0100


Ted,

>This works but I didn't like the idea of putting proprietary stuff in my
>IDL.

I agree, this looks pretty dirty.

>In the end,
>though, I adopted a different approach by using the macros in a different
>way (0% documented of course) that doesn't need anything changing in the
IDL
>- my compiler flag setup for building YYY includes the following:
>
>    CXXFLAGS += -DUSE_core_stub_in_nt_dll
>    CXXFLAGS += -DUSE_core_stub_in_nt_dll_NOT_DEFINED_XXX


This sounds good and I will use it. However I would strongly suggest for
OmniORB 4.0 to document this trick or to adopt some symbol scheme to achive
the same results.
The bad news are that in case of missing import declarations, strange
runtime failures occur because of uninitialized data (not null, just
garbage). The linker doesn't help here since it builds up dlls without
complains.
Btw, are there any similar issues on Linux when using shlibs in place of
dlls ?
Thanks,
                                             Renzo Tomaselli
---------------------------------------------------------------------------
TecnoTP s.n.c. Special Information System Design
Maso Pelauchi I38050 Ronchi Valsugana,  Trento TN  ITALY
Tel. +39 0461 773164      Fax. +39 0461 771514
e-mail: renzo.tomaselli@tecnotp.it
---------------------------------------------------------------------------