1、“pthread.h”: No such file or directory
原因分析:pthread.h是属于Linux平台下的库函数头文件,拿到Windows下编译会报这个问题。
解决方法:找到这个pthread的win32 移植版本
到https://www.sourceware.org/pthreads-win32/上可查看pthread的相关介绍和信息,并下载pthread.h头文件和库文件
到ftp://sourceware.org/pub/pthreads-win32/dll-latest下载最新的头文件和库文件
头文件:ftp://sourceware.org/pub/pthreads-win32/dll-latest/include/
库文件:ftp://sourceware.org/pub/pthreads-win32/dll-latest/lib/x86/