Code:unsigned char Variable1; // Defintion, should go at the top of the .c file it belongs toextern unsigned char Variable1; // Declaration, this goes into your header fileYou might want to take a look at the following link as well:
I would also suggest reading up on the difference between a definition and a declaration.
- Brett