A bit offtopic : SO & DLL export macro

I have this macro for DLL exports :

#ifdef BUILD_DLL
#define EXPORT __declspec( dllexport )
#else
#ifdef USE_DLL
#define EXPORT __declspec( dllimport )
#else
#define EXPORT
#endif /* USE_DLL /
#endif /
BUILD_DLL */

I figured someone on this list is bound to know the answer to this one…
What i want is this modified so it also works for .SO ( Linux Dynamicly
Linked ) files ( assuming i can’t just use it like this ).
Who know’s the answer ? Tnx. in advance.

GreeTz
DV.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1On Wednesday 02 April 2003 17:37, Dinand Vanvelzen wrote:

I have this macro for DLL exports :

#ifdef BUILD_DLL
#define EXPORT __declspec( dllexport )
#else
#ifdef USE_DLL
#define EXPORT __declspec( dllimport )
#else
#define EXPORT
#endif /* USE_DLL /
#endif /
BUILD_DLL */

I figured someone on this list is bound to know the answer to this
one… What i want is this modified so it also works for .SO ( Linux
Dynamicly Linked ) files ( assuming i can’t just use it like this ).
Who know’s the answer ? Tnx. in advance.

AFAIK, all non-static symbols are exported from .sos by default, so you can
just define EXPORT to be empty for Linux.

cu,
Nicolai
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+iwW7sxPozBga0lwRAi7KAKCacETMbIImINiVejFUpxJugO+LaACfQRYb
SJa0UgU8HfYkQTpD592f/Vk=
=tOF1
-----END PGP SIGNATURE-----

i wish i did, i also need to know the answer to this one> ----- Original Message -----

From: vanvelzen@skynet.be (Dinand Vanvelzen)
To:
Sent: Wednesday, April 02, 2003 7:37 AM
Subject: [SDL] A bit offtopic : SO & DLL export macro

I have this macro for DLL exports :

#ifdef BUILD_DLL
#define EXPORT __declspec( dllexport )
#else
#ifdef USE_DLL
#define EXPORT __declspec( dllimport )
#else
#define EXPORT
#endif /* USE_DLL /
#endif /
BUILD_DLL */

I figured someone on this list is bound to know the answer to this one…
What i want is this modified so it also works for .SO ( Linux Dynamicly
Linked ) files ( assuming i can’t just use it like this ).
Who know’s the answer ? Tnx. in advance.

GreeTz
DV.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl