More interestingly, if I simplify the struct to just declare the panel
struct TestMenu
{
PANEL* Menu2;
};
It compiles, but once I include the file in my main.c, it comes back as unidentified. If I typedef it, it's seen, and compiles, but I get a crash as soon as I try to use it
declaration:
typedef struct TestMenu
{
PANEL* Menu2;
};
Usage in main():
TestMenu Test;
Test.Menu2.pos_x = 750; // <- crash
I'm also noticing Lite-C here doesn't seem to have new & delete or malloc? I am guessing the PANEL* points to some random memory address (or NULL if lite-c defaults them to NULL), so I am guessing I will have to define another PANEL* somewhere, initialize it, and set Test.Menu2 to the panel I create?