Mixing shared and static libraries

  • Follow


Hi,

If I compile static libraries that end up in a shared object, when is
this not safe? I understand if the system generates code differently
for the two situations, then it is necessary. Can someone point out to
me which platforms one should do this on?

My *real* requirements are this:

0) Need to unit test
1) Need to unit test same code that is shipped (compiled into a shared
object)
2) Need to use linker script to export the minimal set of public
symbols

The end result *is* a shared object that will be loaded in a plugin
manner. Now if I use a shared object to unit test, I cannot test all of
the code *because* this project also needs to run on Windows (yeah...)
On Windows, for shared objects, all symbols are private unless
exported.

So you can see my dilemma (I hope). What would you suggest?

Thanks!

0
Reply u.int.32.t (27) 1/25/2007 5:37:42 AM


0 Replies
52 Views

(page loaded in 0.028 seconds)

Similiar Articles:













7/29/2012 6:12:38 PM


Reply: