problems compiling with Intel compiler (64bit)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

problems compiling with Intel compiler (64bit)

Stefan Vigerske
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