Problem linking with pthreadVC2.lib (newbie)
Rajiv Kumar
rajivk@azulsystems.com
Thu Apr 21 12:26:00 GMT 2005
I have built the static pthread library: nmake VC-static
I have a test program(test.c) with only two lines of code in main():
pthread_mutex_t mutex = NULL;
pthread_mutex_lock(&mutex);
I include pthread.h in the test program and link with pthreadVC2.lib
I get the following link error :
error LNK2019: unresolved external symbol __imp__pthread_mutex_lock
referenced in function _main
fatal error LNK1120: 1 unresolved externals
Im using MSVC 7.1 on win2k.
Please advise to resolve this.
More information about the Pthreads-win32
mailing list