I searched for this problem here and found some kind of similar question, but the solutions for me do not work. Here is my problem: My application compiles with the openldap-2.3 shared library. Openldap has / usr / lib / libldap -2.3.so.0, which is associated with / usr / lib / libldap -2.3.so.0.2.31. I passed the -lldap to gcc, which linked the libldap-2.3.so.0 file with my application.
But I want to associate with a specific name, for example libldap.so. Please correct me , in the future, if I change the version of openldap to version 2.4 in the development system, it will refer to version libldap-2.4.so.XXX.
So, how can I associate my application with a specific name so that it will always look for the same name as libldap.so.
NOTE. . I created the program link / usr / lib / libldap -2.3.so.0 as / usr / lib / libldap.so and then passed the library name /usr/lib/libldap.so compiler without -l , then the application compiled successfully without which any binding errors, but still showing the same libldap-2.3.so.0 depending.
source share