Using <pthread.h> in Windows VS2013

Source: Internet
Author: User

1. Download Pthreads-w32-2-9-1-realease.zip Address: http://www.mirrorservice.org/sites/sourceware.org/pub/pthreads-win32/
2. After downloading, unzip, out three folders, we only need pre-built.2 folder
3. For ease of administration, copy the three. h header files in the Include folder to the installation path of VS./vc/include path, for example my is C:\Program Files (x86) \microsoft Visual Studio 12.0\vc\ Include
4. Similarly, copy the two folders below the Lib folder x64/and x86/to C:\Program Files (x86) \microsoft Visual Studio 12.0\vc\lib
5. dll files under the same x64 and x86 two folders, the actual operation of the program needs to use. Note here that to copy the x64 folder to the C:\Windows\System32\, let the 64-bit program run, and the x86 folder to be copied to the C:\Windows\SysWOW64\, let the 32-bit program run
6. In the new VS Project, the properties->vc++ directory, including directories, and library directories are appended separately: C:\Program Files (x86) \microsoft Visual Studio 12.0\vc\include and \ C Program Files (x86) \microsoft Visual Studio 12.0\vc\lib\x64
7. Then open the additional dependencies, input, linker, plus pthreadVC2.lib, so that configuration is complete, pthread.h can be used in VS2013

Use <pthread.h> in Windows VS2013;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.