From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21831 invoked by alias); 17 Oct 2003 19:14:37 -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 21823 invoked from network); 17 Oct 2003 19:14:37 -0000 Received: from unknown (HELO crufty.research.bell-labs.com) (204.178.16.49) by sources.redhat.com with SMTP; 17 Oct 2003 19:14:37 -0000 Received: from scummy.research.bell-labs.com (H-135-104-2-10.research.bell-labs.com [135.104.2.10]) by crufty.research.bell-labs.com (8.12.10/8.12.10) with ESMTP id h9HJEanl016876; Fri, 17 Oct 2003 15:14:36 -0400 (EDT) Received: from mcs.research.bell-labs.com (mcs.research.bell-labs.com [135.104.32.15]) by scummy.research.bell-labs.com (8.12.9/8.12.9) with ESMTP id h9HJEU0C003690; Fri, 17 Oct 2003 15:14:30 -0400 (EDT) Received: from lucent.com (LUCENT-45825822.bl.bell-labs.com [135.104.37.232]) by mcs.research.bell-labs.com (8.12.9/8.12.9) with ESMTP id h9HJETDK423373; Fri, 17 Oct 2003 15:14:29 -0400 (EDT) Message-ID: <3F903F95.80205@lucent.com> Date: Fri, 17 Oct 2003 19:14:00 -0000 From: Benoit Raque Reply-To: raque@research.bell-labs.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20030925 X-Accept-Language: en-us, en MIME-Version: 1.0 To: James Ewing CC: pthreads-win32@sources.redhat.com Subject: Re: use pthread under winCE References: <3F8F10F2.8070509@lucent.com> <3F8FAAB4.9090201@sveasoft.com> In-Reply-To: <3F8FAAB4.9090201@sveasoft.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003/txt/msg00103.txt.bz2 I have now declare WINCE, HAVE_CONFIG_H, and add some macros for and too. The project now compile, with a warning : ptw32_getprocessors.c(67) : warning C4013: 'GetProcessAffinityMask' undefined; assuming extern returning int But when it links I get these errors : pthread.obj : error LNK2001: unresolved external symbol _errno pthread.obj : error LNK2019: unresolved external symbol _GetProcessAffinityMask referenced in function _ptw32_getprocessors The _errno function is in the project and compile, I don't understand why the linker don't find it. The _GetProcessAffinityMask looks like a standard function for thread, but I don't find it in the eVC include. Benoit Raque James Ewing wrote: > Did you define WINCE in the project? > > I compile pthreads for ARM using Micrsoft's Embedded Visual C++ 3.0 > regularly and haven't had any problems. I have the following defines > in the config.h file: > > #ifdef WINCE > #define NEED_DUPLICATEHANDLE > #define NEED_CREATETHREAD > #define NEED_ERRNO > #define NEED_CALLOC > #define NEED_FTIME > #define NEED_SEM > #define NEED_UNICODE_CONSTS > #endif > > > And the following in every file that includes : > > #if !defined(_UWIN) && !defined(WINCE) > #include > #endif > > Best Regards, > > James Ewing > > Benoit Raque wrote: > >> Hi, >> >> I try to compile the pthreads-win32 library for winCE, but I can only >> get a dll and a lib on the x86 format (using VC++6 to compile). >> When I make a project in embedded Visual C (3 or 4), I get an error >> "can't found process.h". >> >> Is there a way to compile it in the ARM, MIPS or other format ? >> >> >> Thank you for your help >> Benoit Raque >> > > > > . >