I'm writing an emulator and decided to control input/output emulation within a struct:
struct callbacks
{
short LastFrequency = 9000;
int *MMIO_RANGE1;
short Cycle_LN = 65535 / LastFrequency;
const char *STATUS_FLAGS[] =
{
"ACK",
"NO_VIB",
"DATA",
"BYTEPACK",
"WORDPACK"
};
}
This code above looks fine to me and seems to obey all of the rules ... but I get the error message as stated in the title above. I searched around and people say that the error means different things ... but what is it?
The problem is pointed towards "LastFrequency".