Woody: pthread_rwlock_t error
Hi!
Why does the following simple test program
#include <pthread.h>
pthread_rwlock_t lock;
int main( int argc, char** argv )
{
return(0);
}
yield these errors:
thread_test.c:3: parse error before `lock'
thread_test.c:3: warning: data definition has no type or storage class
and what can I do to fix them?
I compiled this prog with
gcc -o thread_test thread_test.c
This happened on a Debian 3.0 (Woody) system with kernel 2.2.21 and glibc
2.2.5.
Thanks in advance for any info!
Greetings,
Holger
Reply to: