[omniORB] Any option to omniidl to generate __declspec() for
Windows?
Stefan Näwe
stefan.naewe at atlas.de
Thu Oct 19 09:56:27 BST 2006
Tuyen Chau schrieb:
> Is there any option to omniidl to generate __declspec(dllexport) for
> each of the symbol name so that C++ stubs can be packaged as a DLL on
> Windows? Orbix does it by default, eg.
>
> #ifdef _MSC_VER
> #ifdef IT_EXPORT_DLL_Echo
> #define IT_DECLSPEC_Echo __declspec(dllexport)
> #else
> #ifdef IT_IMPORT_DLL_Echo
> #define IT_DECLSPEC_Echo __declspec(dllimport)
> #else
> #define IT_DECLSPEC_Echo
> #endif
> #endif
> #else
> #define IT_DECLSPEC_Echo
> #endif
>
> class IT_DECLSPEC_Echo Echo : ...
> {
> public:
> ...
> }
Use the docs, Luke!
http://omniorb.sourceforge.net/omni40/omniORB/omniORB012.html
Stefan
--
----------------------------------------------------------------------
Stefan Naewe ATLAS Elektronik GmbH
Dept.: NUS T4
phone: +49-(0)421-457-1378 Sebaldsbruecker Heerstr. 235
fax: +49-(0)421-457-3913 28305 Bremen
More information about the omniORB-list
mailing list