2015-1-20, I use MinGW in my Win7, try to compile my source code with MinGW and Pthreads. The MinGW has already support POSIX threads, In the "MinGW Installation Manager", we can install the pthreads dev package and pthreads lib. But when I compile my source codes, there's an error: struct timespec redefinition, first in pthread.h, then in unistd.h, I don't know why.
Before this, actually I install the minGW without the pthreads dev and lib package, I download the pthreads-for-win32 source code and build it locally. I use -I/somewhere -L/somewhere -lpthreadGC2 to link to my source code, and it worked.
But this time, it fail with MinGW self package. I need help. I cannot upload a picture to show you the details....