Hi there,
I'm having some trouble, and I think it's with C syntax... I have a header file "System.h" which is included by multiple c source files (call them foo.c, bar.c).
I'd like to define a struct "alpha" in System.h, and a global variable whose type is alpha in that header as well. I'm not sure if global is the right word here...I'd just like to define a variable whose type is alpha that I can access and modify in foo.c and bar.c.
This is what I have:
"System.h"
struct alpha
{
int a;
int b;
};
extern struct alpha myNewVariable;
"foo.c"
myNewVariable.a = 5;
"bar.c"
myNewVariable.b = 7;
CCS gives me the following error:
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "SeapHOX_source_files.out" not
built
What kind of error is this? How can I fix my declarations? Thanks!
-David