On Sat, 2004-09-11 at 17:41, Armin Bauer wrote: > But using dlerror to detect an error is also correct. From the dlsym > manpage: > > char *error; > > dlerror(); /* Clear any existing error */ > *(void **) (&cosine) = dlsym(handle, "cos"); > if ((error = dlerror()) != NULL) { > fprintf (stderr, "%s\n", error); > exit(1); > }
Yep, fair enough. I'm running FreeBSD, so we're probably looking at different manpages. FYI I'll turn over a patch to the FreeBSD port maintainer adding in a call to dlerror(). Cheers everyone, keep up the good work -Sam ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php _______________________________________________ Multisync-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/multisync-devel