Found this answer here: sizeof a struct member
Copied it completely into my code, but my compiler objects that I have a pointer to an incomplete class type.
uint8_t clStructCount = sizeof(((struct ALMConfStr *) 0)->IntelRecsPerPg);
What am I doing wrong? I want to set clStructCount equal to the value of IntelRecsPerPg at runtime; I thought this was the trick to do so.
Thanks!