Raphael Derosso Pereira
Mon Jul 21 21:30:00 GMT 2008


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
Skype: rderossopereira

More information about the Newlib mailing list