Mixing shared and static libraries
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Mixing shared and static libraries




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Mixing shared and static libraries  
u.int.32.t@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-25-07 06:32 AM

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!






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:23 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register