, LIB. , ! , " " . . , - ? , . , - , . ( Visual ++ ...)
Update:
, . LIB , . , .
, :
#ifdef EXPORT_REGISTRATIONS
#define REGISTRATION_CODE(theClass) \
void register_##theClass##_function() { \
}
#else
#define REGISTRATION_CODE(theClass) \
void register_##theClass##_function(); \
struct theClass##importer { \
theClass##importer() { \
register_##theClass##_function(); \
} \
} g_##theClass##importerInstance; \
#endif
REGISTRATION_CODE(MyClass);
REGISTRATION_CODE(MyOtherClass);
LIB , EXPORT_REGISTRATIONS . , , . , EXPORT_REGISTRATIONS . #include "<path to lib project>\Registrations.cpp" . (, ), , LIB.
. .:)