public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
* Problem linking with pthreadVC2.lib (newbie)
@ 2005-04-21 12:26 Rajiv Kumar
  2005-04-22  4:07 ` Ross Johnson
  0 siblings, 1 reply; 2+ messages in thread
From: Rajiv Kumar @ 2005-04-21 12:26 UTC (permalink / raw)
  To: pthreads-win32

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-04-22  4:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-21 12:26 Problem linking with pthreadVC2.lib (newbie) Rajiv Kumar
2005-04-22  4:07 ` Ross Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).