This is the mail archive of the
mailing list for the pthreas-win32 project.
Problem linking with pthreadVC2.lib (newbie)
- From: "Rajiv Kumar" <rajivk at azulsystems dot com>
- To: <pthreads-win32 at sources dot redhat dot com>
- Date: Thu, 21 Apr 2005 05:28:32 -0700
- Subject: Problem linking with pthreadVC2.lib (newbie)
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;
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.