I am trying to run the producer-consumer code in visual studio 2010 . I copied code from below location
http://www.dailyfreecode.com/code/producer-consumer-problem-thread-1105.aspx#
My os is windows (64bit) I have downloaded the required pthread dll,lib and include folder from the below location for WINDOWS ..
ftp://sourceware.org/pub/pthreads-win32/
I am able to add the include and lib path through project properties window of Visual studio 2010 . But I did not find the option to add extra dll through the property window of c++ project .. and I am getting the below error for my code base :
error LNK2019: unresolved external symbol __imp__pthread_join referenced in function _main
error LNK2019: unresolved external symbol __imp__pthread_create referenced in function _main
error LNK2019: unresolved external symbol __imp__pthread_cond_signal referenced in function "void * __cdecl Producer(void)" (?Producer@@YAPAXXZ)
error LNK2019: unresolved external symbol __imp__pthread_mutex_unlock referenced in function "void * __cdecl Producer(void)" (?Producer@@YAPAXXZ)
error LNK2019: unresolved external symbol __imp__pthread_cond_wait referenced in function "void * __cdecl Producer(void)" (?Producer@@YAPAXXZ)
error LNK2019: unresolved external symbol __imp__pthread_mutex_lock referenced in function "void * __cdecl Producer(void)" (?Producer@@YAPAXXZ)
How to solve this problem ...