Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*

Error: reference to 'byte' is ambiguous

dtroncho
Beginner
743 Views

I am trying to compile a DLL project that compiled well with Intel C++ Compiler 2022 but now after upgrading Microsoft Visual Studio and upgrading Intel oneAPI, I cannot compile it:

 

* When compiled with Intel C++ Compiler 2024 produces the error: reference to 'byte' is ambiguous. If I double clic on the error it brings me to WbemCli.h and highlights this:

virtual HRESULT STDMETHODCALLTYPE WritePropertyValue(
/* [in] */ long lHandle,
/* [in] */ long lNumBytes,
/* [size_is][in] */ const byte *aData) = 0;

 

* When compiled with Intel C++ Compiler 2022 produces the error:

Severity Code Description Project File Line Suppression State Details
Error static_assert failed "error STL1000: Unexpected compiler version, expected Clang 16.0.0 or newer." AnaimoAI C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\yvals_core.h(892,1): 1

 

I am using:

 

* Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.9.1

* Intel oneAPI Base Toolkit 2024.

 

Please help us as we cannot distribute our DLL compiled with Intel until this problem is solved.

 

Thanks in advance.

0 Kudos
1 Reply
Alex_Y_Intel
Moderator
643 Views

Hi @dtroncho 
Please supply a reproducer that can demonstrate your issue. 

0 Kudos
Reply