This function returns an error message for the most recent error in dlopen or dlclose. If several errors have occured since the last call to dlerror, only the first will return an error message.
Gamma> dlopen("nolibraryhere",RTLD_LAZY);
0
Gamma> dlopen("norhere",RTLD_LAZY);
0
Gamma> dlerror();
"norhere: cannot open shared object file: No such file or directory"
Gamma> dlerror();
nil
Gamma>