is it possible to get file name/function name from shared library or binary.I need to debug the shared library but not able to determine the file name from shared library
I am making an rpm of my shared library. In the .spec file, I am writing the normal install commands in %install part ,making some soft links, running ldconfig on %post and %postun. I am not building library in rpm because I already have compiled and stripped library with me.
I created a shared library, libsslab_core.so.1.0.0 using gcc with proper options. I am pretty sure that the shared library works because I already linked it to another source code (I explicitly tells the location of the library using -l option of gcc).
After testing the library works, I tried to integrate the library into my Linux machine.
When running code in a shared library, is it possible for the library to determine its directory location so it can read files located in the same directory? I'm able to do this in Windows, and would like to do the same on various Unix variants.
I have a huge static library that has tons of references to boost and Qt libraries. Let's call it libX.a Lately I tried to create a small db access library, but I had to use some functionality that I already implemented in my huge static library. I went on and used the static library reference in the shared library project and created the shared library without a problem, it linked fine.
I am building a shared library which will be distributed to clients in
binary form only. I am attempting to make the same binary run on as many
Linux variants as possible, and so when I build it I specify the
options -shared and -fPIC.
1. a static library containing a global variable, static variable, a function and a class defined
2. a shared library uses these and hence they are part of the same.
3. a executable program also uses the same and they are part of the same.