I will show how to work with posix thread in visual studio 2010 or 2012
1st must download file named work from this link
http://www.mediafire.com/download/3g3...
this file have 3 files
library, include and a solution for VS name hello using thread
paste the *.h file in include to visual studio folder for C++
on my computer is located at
C:\Program Files x86\Microsoft Visual Studio 12.0\VC\include
it will be similar or the same on other systems
paste the pthreadVC2.lib to visual studio folder for C++
on my computer is located at
C:\Program Files x86\Microsoft Visual Studio 12.0\VC\lib
it will be similar or the same on other systems
paste the pthreadVC2.dll to visual studio bin folder for C++
on my computer is located at
C:\Program Files x86\Microsoft Visual Studio 12.0\VC\bin
it will be similar or the same on other systems
now let's try the hello thread solution
open Visual Studio
go to View , other windows , property manager
we need to work with Visual Studio 32 bits because the library work only with it 32 bits
ok let's continue
after open the solution
go to View , other windows , property manager
as you see after I expand debug folder for win 32
double click on microsoft.Cpp.Win32.user
go to common properties , linker , input
in additional dependencies 1st row
add pthread.lib as dependacy
I already have it
then try to th main , it name is test on the solution
and build it
if the messge like that appeared
try to clean the solution
the build it again
now try to debug it
the solution work 100%