This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Pthread
- From: "Raphael Derosso Pereira" <raphaelpereira at gmail dot com>
- To: newlib at sources dot redhat dot com
- Date: Fri, 18 Jul 2008 16:34:42 -0300
- Subject: Pthread
Hello,
I tried to "#include <pthread.h>", but couldn't use pthread_t. Then I
checked at the pthread.h file that it demands a "#define
_POSIX_THREADS". After including that prior to including <pthread.h>
the compilation fails:
error: 'pthread_mutexattr_t' was not declared in this scope
and lots of more errors. This strucuture is defined in sys/types.h,
but I don't know why it is not included.
What am I doing wrong?
--
Raphael Derosso Pereira
Engenheiro de Computação
icq: 4517421
msn: rderossopereira@hotmail.com
Skype: rderossopereira