I'd like to make a definition of union in one file and call it from others. Union needs to consists structures in it. Is it possible? Thank you, Goran
"There should be only one actual definition of the variable "mine" in a .c somewhere, but the extern reference can be used by all." (my emphasis). Note that you can even include the header with the extern reference in the .c source file with the actual definition of the variable; in fact, I recommend that you should do this - this is the only way that you can get the compiler to warn you when your extern reference gets out-of-step with the actual definition of the variable! Note that this is all standard 'C' stuff - nothing specifically to do with Keil at all.