Guys,
How can I declare a bit variable defined in a file as "extern" when that variable is defined in another file?
Although in the page 99 (C51, uVision2, V2.38) describes that I should be able to put:
extern bit mybit0;
I already have defined previously in a global file:
int bdata ibase; sbit mybit0 = ibase ^ 0;
But yet, I receive this error message:
File (line xx): error C231: 'mybit0': redefinition
What I am missing? Is there any other way to declare a "dbata" variable and declare its bits for usage in multiple files?
Both files are in the project. If I create a large single file with all my code (and all the variable declarations - no extern) I do not get any error message.
Please be gentle and specific in you answers, so I can understand your wisdom.
Thanks in advanced,
dB