From: Benoit Raque <raque@lucent.com>
To: James Ewing <james.ewing@sveasoft.com>
Cc: pthreads-win32@sources.redhat.com
Subject: Re: use pthread under winCE
Date: Fri, 17 Oct 2003 19:14:00 -0000 [thread overview]
Message-ID: <3F903F95.80205@lucent.com> (raw)
In-Reply-To: <3F8FAAB4.9090201@sveasoft.com>
I have now declare WINCE, HAVE_CONFIG_H, and add some macros for
<process.h> and <sys/timeb.h> 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 <process.h>:
>
> #if !defined(_UWIN) && !defined(WINCE)
> #include <process.h>
> #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
>>
>
>
>
> .
>
next prev parent reply other threads:[~2003-10-17 19:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-16 21:43 Benoit Raque
2003-10-17 8:40 ` James Ewing
2003-10-17 19:14 ` Benoit Raque [this message]
2003-10-18 13:06 ` James Ewing
2003-10-20 15:40 ` Benoit Raque
2003-10-20 17:19 ` James Ewing
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=3F903F95.80205@lucent.com \
--to=raque@lucent.com \
--cc=james.ewing@sveasoft.com \
--cc=pthreads-win32@sources.redhat.com \
--cc=raque@research.bell-labs.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).