Adding an additional (pthread) dll in visual studio 2010

I am trying to run producer-consumer code in visual studio 2010. I copied the code from the location below

http://www.dailyfreecode.com/code/producer-consumer-problem-thread-1105.aspx#

My os are windows (64 bit) I downloaded the required pthread dll, lib and include folder from the location below for WINDOWS ..

 ftp://sourceware.org/pub/pthreads-win32/

I can add the include and lib path through the project properties window in Visual Studio 2010. But I did not find the ability to add an additional dll through the C ++ project properties window. and I get the error below 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...

0
source share

All Articles