1、安装pthread 点击下载 2、下载缺失文件 地址: ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.zip 解压得到文件 3、VS的include配置 点击 项目——>属性——按照图示点选,将下载的缺失文件的include的路径填写到”包含目录那一栏内”