8f86407cfd
Create target property WINDOWS_EXPORT_ALL_SYMBOLS to automatically generate a module definition file from MS-compatible .obj files and give it to the linker in order to export all symbols from the .dll part of a SHARED library.
19 lines
293 B
C++
19 lines
293 B
C++
#ifndef _MSC_VER
|
|
#define winexport
|
|
#else
|
|
#ifdef autoexport_EXPORTS
|
|
#define winexport
|
|
#else
|
|
#define winexport __declspec(dllimport)
|
|
#endif
|
|
#endif
|
|
|
|
class Hello
|
|
{
|
|
public:
|
|
static winexport int Data;
|
|
void real();
|
|
static void operator delete[](void*);
|
|
static void operator delete(void*);
|
|
};
|