Pthread

Raphael Derosso Pereira raphaelpereira@gmail.com
Mon Jul 21 21:30:00 GMT 2008


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



More information about the Newlib mailing list