You need to use a header file, containing the structure definition and #included by both of your c files. I would use a system similar to this:
<this is a new header file, eg defs.h>
typedef struct A { // I prefer to use typedefs, especially in a header file
int i;
} structA;
extern structA Object; // This tells the compiler that another source
// file is responsible for defining the variable
<within your F1.c and F2.c files, include this line:>
#include "defs.h"
<within just one of your source files (it does not really matter which), you need to define the actual variable at the top level>
structA Object;
In this manner, both your c files are aware of the single Object at compile time.
JR
Message Edited by jr_2005 on 03-08-2007 10:41 AM