Download Pthread's Windows Development Kit Pthreads-w32-2-4-0-release.exe (available in any one version)
http://sourceware.org/pthreads-win32/, unzip to a directory.
1, add the project header file directory: Project---Properties---configuration properties---c/C + +---General---Additional Include Directories: Plus header file storage directory.
2. The Lib static library path for adding file references: Project---Properties---configuration PROPERTIES---linker---general---Additional Library directories: Plus lib file storage directory.
Then add a project reference to the Lib file name: Project---Properties---configuration PROPERTIES---linker---input---Additional dependencies: Add lib file name.
3. Add the DLL dynamic library referenced by the project: Place the referenced DLL in the same directory as the project's executable file.
Use of Windows Downline libraries