No1:The pthreads lib,download form https://sourceware.org/pthreads-win32/
and reference the GAMP manual given by Dr FengZhou Page4;
No2: add unistd.h and dirent.h;
The dirent.h could be download at https://github.com/tronkko/dirent
The unistd.h are reference the http://www.aichengxu.com/linux/7220030.htm
--------------------------------------------------------------------------------------------------------
解决VC中包含的unistd.h头文件问题
许多在Linux下开发的C程序都需要头文件unistd.h,但VC中没有个头文件,
所以用VC编译总是报错。把下面的内容保存为unistd.h,可以解决这个问题。
/** This file is part of the Mingw32 package.
* unistd.h maps (roughly) to io.h
*/
#ifndef _UNISTD_H
#define _UNISTD_H
#include <io.h>
#include <process.h>
#endif /* _UNISTD_H */
--------------------------------------------------------------------------------------------------------