This is the mail archive of the pthreads-win32@sources.redhat.com mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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;
	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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]