[omniORB] Building a DLL

Ulf Stoermer ulf at emi.yamaha.co.jp
Wed Oct 22 11:00:29 BST 2003


Hi,

in the header file omniORB4/CORBA_sysdep.h I found following
comment (I guess written by Sai Lai) and it worked for me:

// To package stubs into dlls:
//   1. Define the cpp macro _OMNIORB_STUB_DLL when the stub _SK.cc is
//      compiled.
//   2. A .def file has to be created to export the symbols in the dll.
//      The .def file can be generated automatically based on the output
//      of dumpbin. For an example, look at how the omniORB2 dll is created.
//
// To use stubs that has been packaged into dlls:
//   1. Make sure that the cpp macro USE_stub_in_nt_dll is defined before
//      the stub header (.hh) is included.
//
// Use _OMNIORB_NTDLL_IMPORT to ensure that MSVC++ use the correct linkage
// for constants and variables exported by a DLL.

Cheers

Ulf


> -----Original Message-----
> From: omniorb-list-bounces at omniorb-support.com
> [mailto:omniorb-list-bounces at omniorb-support.com]On Behalf Of Le Flour
> Thierry
> Sent: Wednesday, 22 October 2003 12:39 AM
> To: omniorb-list at omniorb-support.com
> Subject: [omniORB] Building a DLL 
> 
> 
> Hello,
> I am using OMNIORB4.0.1 and I woud like to produce a DLL(with Visual C++ 
> 6.0) for packaging the generated stubs.
> I saw in the generated .hh file some line as :
>     #ifndef  USE_core_stub_in_nt_dll
>     # define USE_core_stub_in_nt_dll_NOT_DEFINED_BMM
>     #endif
>     #ifndef  USE_dyn_stub_in_nt_dll   
>     # define USE_dyn_stub_in_nt_dll_NOT_DEFINED_BMM
>     #endif
> but I don't know how to really use them to provide the DLL.
> Any idea ?
> Thanks for your help.
>     Regards.   
> 
>             Thierry Le Flour
> 
> -- 
> ---------------------------------------------------
> Le Flour Thierry
> Service Informatique
> L.A.P.P. - BP 110, Chemin de Bellevue
> 74941 Annecy le Vieux cedex
> 
> Tel : 04.50.09.16.67 - Fax : 04.50.27.94.95
>       04.50.09.16.00
> email: leflour at lapp.in2p3.fr
> ---------------------------------------------------
> 
> 
> 
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
> 



More information about the omniORB-list mailing list