Hi Björn,

--- Dirk Reiners <[EMAIL PROTECTED]> schrieb:
The two solutions I know are using a dynamic lib, or
just explicitly
linking something else from the static lib (which is
a really nasty
workaround). Does anybody know a better solution?


Hello,

I thought that dynamic libs, too, are not linked when
none of their members is used. At least on Windows, I
did not check that on Linux. I remember that I had to
insert something like SLOG << "MyLibFC: " << MyLibFC::getClassTypeId() <<
std::endl;
into my code to have the DLL linked.

That's right, but for a dynamic lib it is enough to just reference one symbol to get everything. For a static lib you have to reference all symbols.

Andreas


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to