-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 #7035
Comments
This issue seems to be related to mingw-w64 headers. A minimal, simple, hello world like example would be helpful to identify the issue faster 😊 |
Trying to reproduce the error using a simple example I was able to reduce it to a few lines of code and was able to find the solution (or at least a workaround). Steps to reproduce:
Steps to fix the issue:
|
I can not reproduce the issue with your sample source code. Some suggestions:
|
To clarify the sample code was not take from my project as is, but was a result of including several headers. One of the header happend to have the |
So, is this case closed? 🕵️ |
Yeah, thanks for helping! |
I ran into the same issue. For me this means that in a project one can never "using namespace std" anywhere in the entire application/code if windows.h is included, which is a headache. |
One should not use "using namespace std" anywhere. See this little explanation https://isocpp.org/wiki/faq/coding-standards#using-namespace-std |
Versions:
Hi guys,
I currently trying to port one of my Linux programs to Windows/MinGW. During the compilation I see some “strange” errors regarding a redefinition of ‘byte’.
This is the full error output:
Do you know a way how to fix this?
Any help will be appreciated.
The text was updated successfully, but these errors were encountered: