Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reference to 'byte' is ambiguous #467

Open
wmjb opened this issue Nov 1, 2024 · 2 comments
Open

reference to 'byte' is ambiguous #467

wmjb opened this issue Nov 1, 2024 · 2 comments

Comments

@wmjb
Copy link

wmjb commented Nov 1, 2024

In file included from C:/usr/local/include/winsock2.h:23:
In file included from C:/usr/local/include/windows.h:97:
In file included from C:/usr/local/include/winscard.h:10:
In file included from C:/usr/local/include/wtypes.h:13:
In file included from C:/usr/local/include/ole2.h:17:
In file included from C:/usr/local/include/objbase.h:66:
C:/usr/local/include/objidl.h:8961:5: error: reference to 'byte' is ambiguous
8961 | byte *reserved1,
| ^
C:/usr/local/include/rpcndr.h:93:25: note: candidate found by name lookup is 'byte'
93 | typedef unsigned char byte;
| ^
C:/usr/local/include/c++/v1/cstddef:71:12: note: candidate found by name lookup is 'std::byte'
71 | enum class byte : unsigned char {};

@mstorsjo
Copy link
Owner

mstorsjo commented Nov 1, 2024

We can’t really do much based on such error messages - you’ll need to provide the minimal input for reproducing the failure.

@QianNangong
Copy link

Does this line in your code?

using namespace std;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants