I am using C++ in VS2022 to build a project. I have to include a header file from an sdk named eve.h
. I have added the include folder holding this file into the project properties.
However, when I build this project, I get a number of C7626 errors stating the following, and pointing to certain lines of the eve.h
file.
Error C7626 unnamed class used in typedef name cannot declare members other than non-static data members, member enumerations, or member classes (compiling source file main.cpp)
The code in one of the lines the error points to is this:
typedef struct
{
int isOpen;
int clearAll;
int clearSome;
int buttonFifty=-1;
int buttonTwenty=-1;
}ALL_Buttons;
This is a header file in the sdk, it is not my code. And I have never come across this error before. How can I work this out? Thanks