Hallo, ein kleines Programm soll die Default-Thread-Attribute auf verschiedenen Betriebssystemen ausgeben. Leider findet gcc die Funktion "pthread_barrierattr_getpshared" nicht, obwohl sie in der Bibliothek vorhanden ist. linpc1 Solutions 120 uname -a Linux linpc1 2.6.8-24.18-smp #1 SMP Fri Aug 19 11:56:28 UTC 2005 i686 i686 i386 GNU/Linux linpc1 Solutions 121 linpc1 Solutions 118 gcc -DBARRIER x.c -lpthread /tmp/ccUvGCcs.o(.text+0x776): In function `print_def_attr': : undefined reference to `pthread_barrierattr_getpshared' collect2: ld returned 1 exit status linpc1 Solutions 119 nm /lib/tls/libpthread.so.0 | grep pthread_barrierattr_getpshared 000080e0 T pthread_barrierattr_getpshared linpc1 Solutions 121 gcc x.c -lpthread linpc1 Solutions 122 ldd a.out linux-gate.so.1 => (0xffffe000) libpthread.so.0 => /lib/tls/libpthread.so.0 (0x40019000) libc.so.6 => /lib/tls/libc.so.6 (0x4002b000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) linpc1 Solutions 123 Hat irgendjemand eine Loesung? Vielen Dank im voraus fuer alle Antworten. Siegmar