I am learning about threads and have been trying to compile a program which contains one. It has the #include <pthread.h> line, but my AVI, CodeBlocks, spits out a variety of errormessages saying that pthread_attr_t is not a defined variable.
I searched my hard drive and found several pthread.h files, each with differing content. Some define the struct pthread_attr_t and others don't. The same is true of other structures necessary for later variable definitions.
Also some of the pthread.h files had redundant but differing definitions of variables.
Can someone set me straight on whether there is a standard pthread.h file and where I can get it.