* Re:Status for Windows CE with pthreads 2.7.0?
@ 2006-09-14 15:56 David Bo Jensen
2006-09-14 18:27 ` Status " Romano Paolo Tenca
2006-09-14 18:30 ` small fixes Romano Paolo Tenca
0 siblings, 2 replies; 3+ messages in thread
From: David Bo Jensen @ 2006-09-14 15:56 UTC (permalink / raw)
To: pthreads-win32; +Cc: mr
I can compile, if the following flag are set /D "WINCE" /D "HAVE_CONFIG_H"
Further more some header files like <process.h> should be prevented from
being included like this.
#ifndef WINCE
# include <procee.h>
#endif
Doing that I could create a static library if I compiled the follow files:
"private.c" "attr.c""barrier.c""cancel.c" "cleanup.c" "condvar.c" "create.c"
"dll.c"
"errno.c" "exit.c" "fork.c" "global.c" "misc.c" "mutex.c" "nonportable.c"
"rwlock.c" "sched.c" "semaphore.c" "signal.c" "spin.c" "sync.c" "tsd.c"
unfortunately it gives me linking errors when I try to link it to my
program.
create.obj : error LNK2019: unresolved external symbol ptw32_threadDestroy
referenced in function pthread_create
create.obj : error LNK2019: unresolved external symbol
ptw32_setthreadpriority referenced in function pthread_create
create.obj : error LNK2019: unresolved external symbol ptw32_threadStart
referenced in function pthread_create
create.obj : error LNK2019: unresolved external symbol ptw32_new referenced
in function pthread_create
SCUtility.lib(SCUtility.obj) : error LNK2019: unresolved external symbol
__imp_pthread_join referenced in function "int __cdecl exit(void)"
(?exit@@YAHXZ)
I can see that source code exist for the unresolved external symbols, but if
I add some of the files I get "already defined" warnings..
I would appreciate if someone could tell us what files are appropriate for
use with windows CE.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Status for Windows CE with pthreads 2.7.0?
2006-09-14 15:56 Re:Status for Windows CE with pthreads 2.7.0? David Bo Jensen
@ 2006-09-14 18:27 ` Romano Paolo Tenca
2006-09-14 18:30 ` small fixes Romano Paolo Tenca
1 sibling, 0 replies; 3+ messages in thread
From: Romano Paolo Tenca @ 2006-09-14 18:27 UTC (permalink / raw)
To: pthreads-win32
Some small fixes:
1) Should be said somewhere that the static lib must be build with this
option:
-lws2_32
2) In ptw32_MCS_lock.c, should be
#include "pthread.h"
#include "implement.h"
not
#include "implement.h"
#include "pthread.h"
3) gcc proto missing warnings:
gcc -c -o pthread_spin_lock.o -D__CLEANUP_C -O3 -finline-functions
-DPTW32_STATI
C_LIB -I. -DHAVE_CONFIG_H -Wall pthread_spin_lock.c
pthread_spin_lock.c: In function `pthread_spin_lock':
pthread_spin_lock.c:55: warning: implicit declaration of function
`ptw32_spinloc
k_check_need_init'
gcc -c -o pthread_spin_trylock.o -D__CLEANUP_C -O3 -finline-functions
-DPTW32_ST
ATIC_LIB -I. -DHAVE_CONFIG_H -Wall pthread_spin_trylock.c
pthread_spin_trylock.c: In function `pthread_spin_trylock':
pthread_spin_trylock.c:55: warning: implicit declaration of function
`ptw32_spin
lock_check_need_init'
--
Romano Paolo Tenca
^ permalink raw reply [flat|nested] 3+ messages in thread
* small fixes
2006-09-14 15:56 Re:Status for Windows CE with pthreads 2.7.0? David Bo Jensen
2006-09-14 18:27 ` Status " Romano Paolo Tenca
@ 2006-09-14 18:30 ` Romano Paolo Tenca
1 sibling, 0 replies; 3+ messages in thread
From: Romano Paolo Tenca @ 2006-09-14 18:30 UTC (permalink / raw)
To: pthreads-win32
(reposting: wrong subject in previous message)
Some small fixes:
1) Should be said somewhere that the static lib must be build with this
option:
-lws2_32
2) In ptw32_MCS_lock.c, should be
#include "pthread.h"
#include "implement.h"
not
#include "implement.h"
#include "pthread.h"
3) gcc proto missing warnings:
gcc -c -o pthread_spin_lock.o -D__CLEANUP_C -O3 -finline-functions
-DPTW32_STATI
C_LIB -I. -DHAVE_CONFIG_H -Wall pthread_spin_lock.c
pthread_spin_lock.c: In function `pthread_spin_lock':
pthread_spin_lock.c:55: warning: implicit declaration of function
`ptw32_spinloc
k_check_need_init'
gcc -c -o pthread_spin_trylock.o -D__CLEANUP_C -O3 -finline-functions
-DPTW32_ST
ATIC_LIB -I. -DHAVE_CONFIG_H -Wall pthread_spin_trylock.c
pthread_spin_trylock.c: In function `pthread_spin_trylock':
pthread_spin_trylock.c:55: warning: implicit declaration of function
`ptw32_spin
lock_check_need_init'
--
Romano Paolo Tenca
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-09-14 18:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-14 15:56 Re:Status for Windows CE with pthreads 2.7.0? David Bo Jensen
2006-09-14 18:27 ` Status " Romano Paolo Tenca
2006-09-14 18:30 ` small fixes Romano Paolo Tenca
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).