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/... Will it be fixed in future releases?
- Does the oneAPI have an environment variable similar to "%ICPP_COMPILER19%"?
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.
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)
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;
and add it to your source files(compile it together).
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.