How would I define some structs in a seperate c file and have them exported?
I have inside c file stuff that looks like this:
types.c
and in header, types.hCode:#include "types.h" static struct s_pos{ ... }; extern struct s_cell{ ... };
things are declared in thisCode:struct s_cell;
When I compile, I get errorCode:#include "types.h" extern struct s_cell map[256][256];
[warning] storage size of `map` isn't known
so they must not be exported correctly.
Could someone explain or point me to a helpful page, thanks.