title: How do I install pthread_win32 (Windows pthread / posix thread library) for Visual Studio 2005?
body: <p><strong>Just to be clear - I have searched the depths of the internet and back for information on how to do this</strong></p>
  
  <p>I'm looking for assistance setting up pthread_Win32 to work with Visual Studio 2005. I'm programming in C, and I have a number of multithreaded assignments to write using pthread.h. However, since pthread is native to unix, I have to write all of my code, ftp it, and then ssh to my class' remote unix system to run it. It makes development take so much longer, and it's incredibly inefficient. I'd love (more than anything) to be able to get this working on my win32 machine, so I can develop in visual studio as I've been doing for quite some time.</p>
  
  <p>I've installed the pthread.lib file and pthread.h file into the respective lib/header directories, where all of the other files are. The DLL on the other hand (the actual library), I've placed in c:\windows\system32. I've tried to add the DLL as a dependency (right click project -> references -> Add new reference), but as others have stated, all I get is a blank dialogue box with no option to add any DLL files or anything. It seems to recognize the header file, but I get these errors when I compile:</p>
  
  <p>1>Linking...</p>
  
  <p>1>main.obj : error LNK2019: unresolved external symbol _<em>imp</em>_pthread_join referenced in function _main</p>
  
  <p>1>main.obj : error LNK2019: unresolved external symbol _<em>imp</em>_pthread_create referenced in function _main</p>
  
  <p>1>main.obj : error LNK2019: unresolved external symbol _<em>imp</em>_pthread_exit referenced in function _fcount</p>
  
  <p>From my research, I've determined that this is a problem with the DLL, and I'm assuming it can't find the definitions of the functions I've referenced in my code. I've searched high and low and I can't seem to figure out any way to overcome this problem. I've added the directories of the lib/header files to my linker, just in-case, but that didn't solve the issue. I need to do something, in visual studio, to specify that I need pthreadVC2.dll as a project dependency - and it seems to be impossible (and extremely frustrating) at this point.</p>
  
  <p>Any words of wisdom?</p>
  
  <p>Thank you very much</p>