Linking against multiple shared libraries that all linked against a common static library

Posted by live2dream95 on Stack Overflow See other posts from Stack Overflow or by live2dream95
Published on 2010-03-08T18:49:56Z Indexed on 2010/03/08 19:51 UTC
Read the original article Hit count: 415

Filed under:
|
|

Say you have 2 share libraries, lib1.so and lib2.so, that both have libcommon.a statically linked into them. Would the compiler complain about ambiguous symbol reference if you were to dynamically link both lib1.so and lib2.so? Or would be the compiler be smart enough to know libcommon symbols are shared between lib1 and lib2 and allow you to dynamically link against both?

© Stack Overflow or respective owner

Related posts about c

    Related posts about linux