Is it possible to provide a shared library – which links against another shared library during its creation – transparent to the end user?
As an example of what I mean:
Shared Library Build
g++ ... `pkg-config gtk+-2.0 --cflags` ... `pkg-config gtk+-2.0 --libs`
Desired User Build
g++ file.cc -lfoo
Where libfoo.so.0 is the shared library.
I can only seem to get this to work if the user build includes the pkg-config gtk+-2.0 .... Is there a way, during the creation of the shared object, to allow the end user to not have to worry about the indirect libraries used within libfoo?
If you have a shared library
libABC.sowhich links tolibXYZ.sothen,while creating your
libABC.so, you have to link withlibXYZ.soWhile compiling the application,
don’t forget to, export the library path