17.1. Introducing libltdl
Probably the best known and supported Unix runtime-linking API is the 'dlopen' interface, used by Solaris and GNU/Linux among others, and discussed earlier in Chapter 16, "Dynamic Loading." libltdl is based on the 'dlopen' API, with a few small differences and several enhancements.
The following libltdl API functions are declared in 'ltdl.h':
lt_dlhandle lt_dlopen (const char *filename) | This function brings the code from a named module into the address space of the running program that calls it and returns a handle used by the other API functions. If filename is not an absolute path, libltdl searches for it in directories named in the 'LTDL_LIBRARY_PATH' environment variable, and then in the standard library directories ... |
Get GNU Autoconf, Automake, and Libtool now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.