Can someone explain about Linux library naming?

前端 未结 5 535
小鲜肉
小鲜肉 2021-02-07 02:46

When I create a library on Linux, I use this method:

  1. Build: libhelloworld.so.1.0.0
  2. Link: libhelloworld.so.1.0.0 libhelloworld.so
  3. Link: libhellowo
5条回答
  •  情书的邮戳
    2021-02-07 03:16

    There are several ways to name libs:

    1. Solaris-style: .so -> .so.1
    2. GNU style: .so -> .so.1 -> .so.1.2.3
    3. Random: .so -> .so.1.2

    See:

    https://blogs.oracle.com/ali/entry/how_to_name_a_solaris http://www.gnu.org/software/libtool/manual/libtool.html#Versioning

提交回复
热议问题