I have two files- call them ccode.h and c++.h. The file ccode.h has a struct in it that I would like to access from the c++ code. I have included ccode.h in c++.h but am not sure as to why this is not compiling. Here is an example:
C Code:
typedef struct
{
int y;
int z;
} game;
C++ Code:
#include "ccode.h"
game test;
Any help would be appreciated.