I was reading through the man pages on my system and came across some
functions which seem to indicate that I can load a library at run-time
without statically linking the load information stubs into my program.
The functions in question are dlopen, dlsym, dlerror and dlclose.
They are especially of interest to me because my application has a
core which is static (ie in development) but which can be extended
without change by loading different libraries at different times.
For example, I may want my application to enter into a module by a
specific function name, and each of these functions has the same
argument type. This will be ideal if, for instance, I have three
different e-mail systems, and I want to be able to tie the three
As I mentioned I found them in the man pages by man -k "dynamic link"
but there were no actual man pages. I found the prototypes in
/usr/include/dlfcn.h, but couldn't find which library to link into.
Does anyone know the library(s) or where I can get the right
information/documentation? It's not in the LPG - I checked.
Thanks in advance.