Posts

Showing posts from March 26, 2019

Is it possible to get location of dependent libraries from within code

Image
1 I want to load some dependent libraries from my program with dlopen function. Is it possible to know actual location of these libraries? eg, ldd shows all dependent libraries with paths in system. How does it work? Is it possible to get paths to correspondent libraries I need to load with dlopen via some call from my C++ code? c++ linux shared-libraries executable share | improve this question asked Jan 3 at 10:25 dojo_user dojo_user 13 5