dlopen fails for libpthread

Ulrich Drepper drepper at redhat.com
Sat Jan 3 19:42:22 UTC 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mike Perry wrote:
>    if ((handle = dlopen("/lib/libpthread.so.0", RTLD_LAZY)) == NULL)
>            printf("Dlerror: %s\n", dlerror());

#include <gnu/lib-names.h>

and replace the file name with LIBPTHREAD_SO.

- -- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/9xsf2ijCOnn/RHQRAuecAKCxk2qjXcbU+5Tlk1Tc8VpPkkC7qgCgsg1s
JaBLtgm+va0/Q8GjsnD6eKs=
=KGn+
-----END PGP SIGNATURE-----





More information about the devel mailing list