- /*
- * try extract a symbol from the library
- * get any error message is there is any
- */
-
- if (h)
- {
- dlerror(); // clear value
- *v = dlsym(h, sym_name);
- err = (char*)dlerror();
- if (!*v || err)
- return false;
- }
-
- /* succeeded :) */
- return true;
-}