This is the mail archive of the pthreads-win32@sourceware.org mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

problems compiling with Intel compiler (64bit)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]