- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am getting the following error.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\shared/rpcndr.h(191,23): note: candidate found by name lookup is 'byte'
1>typedef unsigned char byte;
1> ^
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\cstddef(29,12): note: candidate found by name lookup is 'std::byte'
1>enum class byte : unsigned char {};
1> ^
1>In file included from ..\\source\\SM_BaseContactMgr.cc:35:
1>In file included from C:\\Users\\dilip\\source\\repos\\DPCPPConsoleApplication1\\include\SM_MemoryMgr.h:25:
1>In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\windows.h:208:
1>In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winscard.h:30:
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\shared\wtypes.h(485,21): : error : reference to 'byte' is ambiguous
1> /* [size_is] */ byte pBuffer[ 1 ];
1> ^
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\shared/rpcndr.h(191,23): note: candidate found by name lookup is 'byte'
1>typedef unsigned char byte;
1> ^
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\cstddef(29,12): note: candidate found by name lookup is 'std::byte'
1>enum class byte : unsigned char {};
1> ^
1>In file included from ..\\source\\SM_BaseContactMgr.cc:35:
1>In file included from C:\\Users\\dilip\\source\\repos\\DPCPPConsoleApplication1\\include\SM_MemoryMgr.h:25:
1>In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um/windows.h:217:
1>In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um/ole2.h:37:
1>In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\objbase.h:27:
1>In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\combaseapi.h:363:
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\objidlbase.h(2175,74): : error : reference to 'byte' is ambiguous
1> /* [length_is][size_is][out] */ __RPC__out_ecount_part(cb, *pcbRead) byte *pv,
1> ^
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\shared\rpcndr.h(191,23): note: candidate found by name lookup is 'byte'
1>typedef unsigned char byte;
1> ^
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\cstddef(29,12): note: candidate found by name lookup is 'std::byte'
1>enum class byte : unsigned char {};
1> ^
1>In file included from ..\\source\\SM_BaseContactMgr.cc:35:
1>In file included from C:\\Users\\dilip\\source\\repos\\DPCPPConsoleApplication1\\include\SM_MemoryMgr.h:25:
1>In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um/windows.h:217:
1>In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um/ole2.h:37:
1>In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\objbase.h:27:
1>In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\combaseapi.h:363:
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\objidlbase.h(2189,57): : error : reference to 'byte' is ambiguous
1> /* [size_is][in] */ __RPC__in_ecount_full(cb) const byte *pv,
1> ^
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\shared\rpcndr.h(191,23): note: candidate found by name lookup is 'byte'
1>typedef unsigned char byte;
1> ^
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\cstddef(29,12): note: candidate found by name lookup is 'std::byte'
1>enum class byte : unsigned char {};
Link Copied
![](/skins/images/D2683F18326913BBA0436CB7114DD569/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page