When I compile something, errors occur saying _dlopen and other _dl routines can't be found. Why?
You are probably trying to compile something statically. You must either
include stub routines for the _dl routines, or you must link the C library
(or -ldl) dynamically. The source code below provides do-nothing stubs
for the routines in question.
/* libdl stubs -- John DiMarco
char *dgettext(domainname, msgid)
char *domainname;
char *msgid;
{ return(msgid); }
void *dlopen(pathname, mode)
char *pathname;
int mode;
{ return((void *)NULL); }
void *dlsym(handle, name)
void *handle;
char *name;
{ return((void *)NULL); }
char *dlerror()
{ return(NULL); }
int dlclose(handle)
void *handle;
{ return(0); }
Home | FAQ |