This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]