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

Conflicting with windows.h #10

Open
TheAaronn opened this issue Nov 22, 2023 · 0 comments
Open

Conflicting with windows.h #10

TheAaronn opened this issue Nov 22, 2023 · 0 comments

Comments

@TheAaronn
Copy link

Not sure what library conflicts with windows.h as some library also defines byte, was necessary to add #define WIN32_LEAN_AND_MEAN at the top of the header file to make it work, without the macro, throws a bunch of compilation errors like this:
In file included from c:\mingdef\mingw\x86_64-w64-mingw32\include\wtypes.h:8, from c:\mingdef\mingw\x86_64-w64-mingw32\include\winscard.h:10, from c:\mingdef\mingw\x86_64-w64-mingw32\include\windows.h:97, from {path} headers/color.hpp:11, from {path} testing.cpp:7: c:\mingdef\mingw\x86_64-w64-mingw32\include\rpcndr.h:64:11: error: reference to 'byte' is ambiguous 64 | typedef byte cs_byte; | ^~~~

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

1 participant