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; | ^~~~
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; | ^~~~