From: Stefan Vigerske <stefan@math.hu-berlin.de>
To: pthreads-win32@sourceware.org
Subject: problems compiling with Intel compiler (64bit)
Date: Tue, 20 Nov 2012 17:28:00 -0000 [thread overview]
Message-ID: <50ABBDC5.3000600@math.hu-berlin.de> (raw)
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
reply other threads:[~2012-11-20 17:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=50ABBDC5.3000600@math.hu-berlin.de \
--to=stefan@math.hu-berlin.de \
--cc=pthreads-win32@sourceware.org \
/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).