For sun compilers, If I try to define extern and initialize (like a bum) in two or more files, the compiler doesnt give any warnings, but it does strange things and the linker cribs about multiple definitions
extern unsigned char gStackCount = 0
This is a stupid Copy and Paste mistake. Never try to intialize an extern global variable (atleast in sun compilers). I tried to initialize it as an extern in two files, just for safety purposes and I was trying the whole day yesterday fighting a linker error regarding multiple defintions . Be careful for such stupid mistakes !!!!! Time is precious when your ass is on fire....
I want to write a piece on how Copy and Paste (although a very precious keystroke) can really screw up the code with untraceable and weird mistakes. I will do that someday. For now cheers on a friday morning!