V
V
Vadim Ushakov2021-09-22 23:10:01
linux
Vadim Ushakov, 2021-09-22 23:10:01

Is it possible to get the path to the .so library, from within that library?

The essence of the question is in the title of the question, I use boost to get the path for the executable file, I get instead of the path to the library from which the function is called - the path to the executable file that connects this library. Does it make sense to try to get the path to the .so library from this library file?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xibir, 2021-09-22
@xibir

see dladdr function

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question