- , . , - , , , , , , .
Windows, , DLL, , , , "" ", , .
, , 4. ,
#if defined(__GNUC__) && __GNUC__ >= 4
, , . , :
__attribute__((visibility("default")))
, , #define, - , SO_EXPORT, :
#define SO_EXPORT __attribute__((visibility("default")))
:
class SO_EXPORT MyAccessInterface;
:
SO_EXPORT int doSomething( parameters );
( , "", " " ). , , .
#define SO_HIDDEN __attribute__((visibility("hidden")))
class SO_HIDDEN MyClassImpl;