Installing pthread win32

5.6k Views Asked by At

I tried to install pthread win32 according to this guide.

I added the pthreadVC2.dll file to C:\Windows and the pthreadVC2.lib file to C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib. I typed pthreadVC2.lib in additional dependencies in linker but I couldn't include pthreads.h file in my project. Visual studio doesn't recognize this file. What's the problem?

I would like to get some help.

2

There are 2 best solutions below

0
On

I would recommend you to use MinGw for this purpose where lots of support is provided under this matter. You can use MinGW in Windows and the answer to this problem could be found here.

0
On

The guide you followed has some issues. Your problem can be explained because the guide omitted to copy the header files to somewhere they will be found. A further problem is that the correct header file is pthread.h not pthreads.h.

If you wish to install pthread-win32 to your Visual Studio directory, the instructions on the following page may be more complete:

http://web.cs.du.edu/~sturtevant/pthread.html