public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
From: "Rajiv Kumar" <rajivk@azulsystems.com>
To: <pthreads-win32@sources.redhat.com>
Subject: Problem linking with pthreadVC2.lib (newbie)
Date: Thu, 21 Apr 2005 12:26:00 -0000	[thread overview]
Message-ID: <CE89F669E67F12458039DCD317EBF45602C5E271@xch001> (raw)

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.

             reply	other threads:[~2005-04-21 12:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-21 12:26 Rajiv Kumar [this message]
2005-04-22  4:07 ` Ross Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CE89F669E67F12458039DCD317EBF45602C5E271@xch001 \
    --to=rajivk@azulsystems.com \
    --cc=pthreads-win32@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).