public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
* problems compiling with Intel compiler (64bit)
@ 2012-11-20 17:28 Stefan Vigerske
  0 siblings, 0 replies; only message in thread
From: Stefan Vigerske @ 2012-11-20 17:28 UTC (permalink / raw)
  To: pthreads-win32

Hi,

I had two issues when trying to compile with
Intel(R) C++ Intel(R) 64 Compiler XE for applications running on 
Intel(R) 64, Version 13.0.1.119

I did nmake CC=icl VCE
and got 5 compiler errors from ptw32_MCS_lock.c of the form

ptw32_MCS_lock.c(106): error: argument of type "volatile 
size_t={unsigned __int64} *" is incompatible with parameter of type 
"volatile LONG64={__int64} *"
 
(PTW32_INTERLOCKED_SIZEPTR)flag,


I could get around this by changing PTW32_INTERLOCKED_SIZEPTR in 
implement.h:
#define PTW32_INTERLOCKED_SIZEPTR PTW32_INTERLOCKED_VOLATILE LONG64*


The second issue was during linking the library:
nonportable.obj : error LNK2019: unresolved external symbol 
ptw32_robust_mutex_remove referenced in function 
pthread_win32_thread_detach_np

This could be resolved by removing the INLINE in front of 
ptw32_robust_mutex_remove in pthread_mutex_consistent.c.


Best,
Stefan

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-11-20 17:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-20 17:28 problems compiling with Intel compiler (64bit) Stefan Vigerske

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).