From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26368 invoked by alias); 21 Apr 2005 12:26:22 -0000 Mailing-List: contact pthreads-win32-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sources.redhat.com Received: (qmail 26313 invoked from network); 21 Apr 2005 12:26:17 -0000 Received: from unknown (HELO apollo.azulsystems.com) (66.88.133.2) by sourceware.org with SMTP; 21 Apr 2005 12:26:17 -0000 Received: from localhost (localhost [127.0.0.1]) by apollo.azulsystems.com (Postfix) with ESMTP id CDA0515C71 for ; Thu, 21 Apr 2005 05:26:16 -0700 (PDT) Received: from apollo.azulsystems.com ([127.0.0.1]) by localhost (apollo [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03595-02-30 for ; Thu, 21 Apr 2005 05:26:15 -0700 (PDT) Received: from xch001.azulsystems.com (gw-10-10-110.azulsystems.com [10.10.110.1]) by apollo.azulsystems.com (Postfix) with ESMTP id 60F5E15C53 for ; Thu, 21 Apr 2005 05:26:15 -0700 (PDT) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Problem linking with pthreadVC2.lib (newbie) Date: Thu, 21 Apr 2005 12:26:00 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Rajiv Kumar" To: X-SW-Source: 2005/txt/msg00074.txt.bz2 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 =3D 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.