|
|
Mixing shared and static libraries
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: How to extract object files from a shared library... - comp.unix ...Hi all, Is there a tool to extract object files from a shared library, as "ar" can be used to perform on static libraries, or is there some loss of ... How can I determine if a static library is 32-bit or 64-bit ...If one has a shared library (foobar.so), it is easy to tell ... How can I do the same with a static library? I have a maths ... My application is a mix of a number of different ... Linux dynamic library and static C++ data - comp.os.linux.misc ...Linux Tutorial - Static, Shared Dynamic and Loadable Linux Libraries YoLinux Tutorials: Static, Shared Dynamic and Loadable Linux Libraries. Linux Information Portal ... List of static libraries - comp.unix.solarisStatic globals in Shared library - comp.unix.programmer List of static libraries - comp.unix.solaris Versioning a C++ Shared Object - comp.unix.solaris... can not find the ... Global static destructors called when a dynamic library is ...At my current job, our coding guidlines contain a general prohibition against static objects with non-trivial destructors in shared libraries, precisely ... Using thread-specific data in shared libraries - comp.programming ...Static globals in Shared library - comp.unix.programmer Linux Tutorial - Static, Shared Dynamic and Loadable Linux Libraries... linking ... thread-specific data in shared ... dynamic libraries, importing symbols - comp.unix.programmer ...Hi group, I would like to create a shared library which would use symbols defined ... Linux dynamic library and static C++ data - comp.os.linux.misc ... dynamic libraries ... Linker Can't Find Library - comp.os.ms-windows.programmer.win32 ...Hi all, Is there a tool to extract object files from a shared library, as "ar" can be used to perform on static libraries, or is there some loss of ... Using/Porting C libraries from Windows to Linux - comp.unix ...Deploying Matlab code as a shared DLL on Linux - comp.soft-sys ... Hi, I am trying ... Porting a static library from Windows to UNIX ... such as Java technology, Linux ... To find whether the shared library is of 'debug' version?? - comp ...Static globals in Shared library - comp.unix.programmer To find whether the shared library is of 'debug' version?? - comp ..... can find out whether the shared library ... linux - Mixing static libraries and shared libraries - Stack OverflowI have a project where I have one static library libhelper.a and another with my actual shared object library, libtestlib.so. My goal is to link libhelper.a into ... c - Can I mix static and shared-object libraries when linking ...Looking at this thread you can see that it can be done. The guys at GNU suggest gcc foo.c -Wl,-Bstatic -lib1 -lib2 -lib3 -Wl,-Bdynamic -lib3rdparty -o foo.exe 7/29/2012 6:12:38 PM
|
|
|
|
|
|
|
|
|