- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am upgrading our intel compiler from the classic one(19.0) to OneAPI 2021.1.1.
OS - Win10.
IDE - Visual Studio 2019 16.8.4.
I am receiving the following errors:
error : unused parameter 'regionSequence' [-Werror,-Wunused-parameter].
error: argument unused during compilation: '-arch:SSE2' [-Werror,-Wunused-command-line-argument].
The compiler settings are:
"icl.exe /nologo /Zp16 /W3 /D_WINDOWS /D__Native /DkNativeProcessCodeCompilation=1 /Qstd=c++17 /QxSSE3 /QaxSSE4.2"
- How can I disable those warnings?
- I am also experiencing "unresolved external symbol wmemcmp" which I found is already reported in https://community.intel.com/t5/Intel-C-Compiler/Intel-C-19-1-Link-error-unresolved-Symbol-with-C-17/td-p/1179168 Will it be fixed in future releases?
- Does the oneAPI have an environment variable similar to "%ICPP_COMPILER19%"?
Thanks,
Max.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for reaching out to us.
Will you please try using ICX.exe as some of the errors you have mentioned are fixed in the compiler.
Try with ICX and send us the logs so that we will get more insight into this issue.
Also please send us a small reproducer for this issue with your configurations, so that we can try it out on our end and will try to resolve this issue.
Warm Regards,
Abhishek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ICX didn't help.
If someone encounters the issue just make new .cpp file with:
extern "C" extern inline const wchar_t* wmemchr(wchar_t const* _S, wchar_t _C, size_t _N)
{
for (; 0 < _N; ++_S, --_N)
if (*_S == _C)
return _S;
return 0;
}
extern "C" extern inline int wmemcmp(wchar_t const* _S1, wchar_t const* _S2, size_t _N)
{
for (; 0 < _N; ++_S1, ++_S2, --_N)
if (*_S1 != *_S2)
return *_S1 < *_S2 ? -1 : 1;
return 0;
}
and add it to your source files(compile it together).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Please give us an update on the provided details.
Thank You
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We haven't heard back from you for a long time, so we are assuming that the provided details helped you to solve your issue.
We will no longer monitor this thread, please post a new thread if you have any issues.
Warm Regards,
Abhishek

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page