Thursday, 15 January 2015

linker - shared linking against libB.so, libB.so.3, or libB.so.3.0? -



linker - shared linking against libB.so, libB.so.3, or libB.so.3.0? -

suppose create library links against (system) library b of next files installed:

$ ll /usr/lib/libb* libb.so -> libb.so.3 libb.so.3 -> libb.so.3.0 libb.so.3.0

when creating own liba.so*, suppose it'd practice include of libb.so* on link line. in fact, linker flag -wl,--no-undefined enforces this.

it doesn't seem create difference of above libb files used linking since point same file libb.so.3.0, i'm guessing there best practices this, too.

what's recommended , why?

what's recommended , why?

only linking against libb.so officially supported. linking against libb.so.3 or libb.so.3.0 works more or less accident; don't it.

you can read external library versioning here.

linker dynamic-linking abi

No comments:

Post a Comment