From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7917 invoked by alias); 28 Nov 2007 12:56:25 -0000 Received: (qmail 7908 invoked by uid 22791); 28 Nov 2007 12:56:24 -0000 X-Spam-Check-By: sourceware.org Received: from kab114a10.tmd.ns.ac.yu (HELO smtp.dmsgroup.co.yu) (147.91.174.176) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 28 Nov 2007 12:56:20 +0000 Received: from gornik (unknown [192.168.0.143]) by smtp.dmsgroup.co.yu (Postfix) with SMTP id 23102C0DC3 for ; Wed, 28 Nov 2007 13:56:16 +0100 (CET) Message-ID: <00fb01c831be$10373560$8f00a8c0@dms.local> From: "Milan Gornik" To: Subject: pThreads 2.8.0 build with VS 2005 (VC 8) Date: Thu, 06 Dec 2007 15:27:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-2"; reply-type=original Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-IsSubscribed: yes Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org X-SW-Source: 2007/txt/msg00050.txt.bz2 I have Microsoft Visual Studio 2005 / Visual C++ 8. I tried to build pThreads library v2.8.0 from the source code and had some problems. Following configurations don't build successfully: 1) nmake clean vce Creating library pthreadVCE2.lib and object pthreadVCE2.exp misc.obj : error LNK2019: unresolved external symbol _ptw32_mcs_lock_release referenced in function "void __cdecl ptw32_once_on_init_cancel(void *)" (?ptw32_once_on_init_cancel@@YAXPAX@Z) misc.obj : error LNK2019: unresolved external symbol _ptw32_mcs_lock_acquire referenced in function _pthread_once mutex.obj : error LNK2019: unresolved external symbol _ptw32_relmillisecs referenced in function "int __cdecl ptw32_timed_eventwait(void *,struct timespec const *)" (?ptw32_timed_eventwait@@YAHPAXPBUtimespec@@@Z) semaphore.obj : error LNK2001: unresolved external symbol _ptw32_relmillisecs pthreadVCE2.dll : fatal error LNK1120: 3 unresolved externals NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.EXE"' : return code '0x2' Stop. 2) nmake clean vce-debug Creating library pthreadVCE2d.lib and object pthreadVCE2d.exp misc.obj : error LNK2019: unresolved external symbol _ptw32_mcs_lock_release referenced in function _pthread_once misc.obj : error LNK2019: unresolved external symbol _ptw32_mcs_lock_acquire referenced in function _pthread_once mutex.obj : error LNK2019: unresolved external symbol _ptw32_relmillisecs referenced in function "int __cdecl ptw32_timed_eventwait(void *,struct timespec const *)" (?ptw32_timed_eventwait@@YAHPAXPBUtimespec@@@Z) semaphore.obj : error LNK2001: unresolved external symbol _ptw32_relmillisecs pthreadVCE2d.dll : fatal error LNK1120: 3 unresolved externals NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.EXE"' : return code '0x2' Stop. Other configurations are building successfully, with some warnings though. Is this a known issue? Are there known workarounds? Or, am I just missing to set enivornment properly before build? Regards, Milan Gornik