I have this stupid problem which I can't figure out, regarding the inclusion of headers files...
I'm starting a medium sized project with multiple cpp and header files.
I have one "sys.h" header file that includes all of the headers I need.
etc' (partial list).
On the game header file, I have declared a game data struct.
*some data variables...*
later on, in the display header file, I've tried using this struct.
void Display(gam_data_t gam_data);
However, for some reason this doesn't seem to work. I get an error:
"display.h : error C2065: 'gam_data_t' : undeclared identifier"
I'm confused, I'm not sure of the source of this problem, as doing the exact same thing has already worked on different files. Also, if I cut & paste the exact declaration of gam_data_t to a different header file, the compilation returns no error! So I guess it has something to do with the order of the compilation or the include calls, but I'm not sure how to fix that...
Thanks for any input!