Skip to content

Cannot build the project due to errors with C2872: 'byte': ambiguous symbol in rpcndr.h #1561

Open
@tungdsefastec

Description

Summary

I try to include the oneTBB in the Qt Project. I downloaded the package from Intel and installed it in my computer.
When I try to #include"oneapi/tbb.h", it shows errors

Version

2022.0.0

Environment

  • OS name and version: Windows 11
  • Compiler version: MSVC2019 64bit

Build errors:
C:/Program Files (x86)/Windows Kits/10/Include/10.0.22621.0/shared/rpcndr.h::203::-1">C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\rpcndr.h(203): error C2872: 'byte': ambiguous symbol
C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\rpcndr.h(202): note: could be 'unsigned char byte'
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include/cstddef::28::-1">C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\cstddef(28): note: or 'std::byte'

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions