Skip to contentSkip to conversation

Shared Library

DISCUSSION r_zaca 3 participants 3 messages Aug 9, 2005 – Aug 10, 2005

lore
Share & tools
lore

r_zaca

author
#0 lore raw

Hello all,

Is it possible to check what shared libraries a program is using or what
shared libraries is available to a program inside the code?
I mean, I need to be sure that a function in a shared library is available
before I call this function.

Thanks.

#1 lore raw
Quoted 4 lines · r_zaca

Is it possible to check what shared libraries a program is using or what
shared libraries is available to a program inside the code?
I mean, I need to be sure that a function in a shared library is available
before I call this function.

$ man 1 ldd
Signature · 2 lines
Arvind Kalyan
http://www.devforge.net/~arv
#2 lore raw
In reply to r_zaca
Quoted 4 lines · r_zaca

Is it possible to check what shared libraries a program is using or what
shared libraries is available to a program inside the code?
I mean, I need to be sure that a function in a shared library is available
before I call this function.

It sounds as if you want dlopen/dlsym.

Signature · 1 line
Glynn Clements <[email protected]>