Hello, is it possible to declare a structure globally in a header file so that all files that include it have access to its members?
Example:
Header.h
struct
{
int MemberOne;
float MemberTwo;
char MemberThree;
} Stuff;
SourceOne.c and SourceTwo.c both have
#include "Header.h"
...
//Member manipulation
I tried just adding the structure to my header file, I ony have one at the moment, and my compiler throws up a redundant declaration error.
Thank you.
[Edited by - Xiachunyi on June 20, 2005 5:23:46 PM]