The default name of the library object for GCC of pthreads-win32 is not libpthread.a but libpthreadGC2.a. I think that it is better to check both like ffmpeg/libav/x264 has done so. http://pastebin.com/PsRbKyY3