4 ms·
If some library e.g. libpng depends on a particular version of glibc, and your application depends on libpng and glibc, you better hope they want the same versi
by assbuttbuttass 5y ago
If some library e.g. libpng depends on a particular version of glibc, and your application depends on libpng and glibc, you better hope they want the same version
- jancsika 5y agoI'm still not getting it. Doesn't libpng use the soname.someVersion, too?
- assbuttbuttass 5y agoWell suppose to libpng depends on glibc version 6.0, but when you try to link your app it will find the latest glibc 6.1. Only one of these versions is going to get loaded at runtime. The compiler's not going to check compatibility between all the different libraries.
- jancsika 5y agoIf the highest number always gets chosen then what's the point of libname.so.versionNumber in the first place?
- rlpb 5y agoThe point is for runtime. At build time generally the latest available version is used (via a symlink) and then that version gets locked in to the resulting binary.