[omniORB] Any option to omniidl to generate __declspec() for Windows?

Tuyen Chau tchau at verano.com
Wed Oct 18 16:33:02 BST 2006


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:
    ...
}

Thanks,
Tuyen



More information about the omniORB-list mailing list