I have a program that requires certain library versions (libgstreamer example), so an older version will not work. Due to lazy binding, it is possible that my program will reference gstreamer version 10.23, which lacks some of the characters present in 10.25 that I use. My question is how can I check which version of the library is installed without using the package manager for this. Is it possible to load a library from C program, check its version number using dlopen (), maybe?
Edit: I am working on a Linux system
Edit 2: Maybe I can use readelf -V?
Thank!
source
share