Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - the difference between libgf.so and libgf.so.1: (2 Items)
   
the difference between libgf.so and libgf.so.1  
Hello everyone!
     When  I complie a binary named gf_test ,I linked the dynamic lib (libgf.so.1),As a result , the error tips that :
cannot find -lgf.so.but  when I linked the dynamic lib(
libgf.so),the compling is successful. Then I run the gf_test with DL_DEBUG=1,the lib(libgf.so.1) is loaded.
      what is the difference between libgf.so and libgf.so.1?
      why did I complie gf_test  with libgf.so,  the libgf.so.1 is loaded when running gf_test?
      Please give me some advice ,thanks!
Re: the difference between libgf.so and libgf.so.1  
On 10-09-16 06:07 AM, Kailen High wrote:
> Hello everyone!
>       When  I complie a binary named gf_test ,I linked the dynamic lib (libgf.so.1),As a result , the error tips that 
:cannot find -lgf.so.but  when I linked the dynamic lib(
> libgf.so),the compling is successful. Then I run the gf_test with DL_DEBUG=1,the lib(libgf.so.1) is loaded.
>        what is the difference between libgf.so and libgf.so.1?
>        why did I complie gf_test  with libgf.so,  the libgf.so.1 is loaded when running gf_test?
>        Please give me some advice ,thanks!

There's no difference.

$ ls -al $QNX_TARGET/x86/usr/lib/libgf.so
lrwxrwxrwx 1 ryan ryan 10 2010-05-04 13:51 /opt/qnx650/target/qnx6/x86
/usr/lib/libgf.so -> libgf.so.1

This is a common versioning method where the library name is a symlink 
to the latest soname version.

Regards,

Ryan Mansfield