Topic : Extern declaration of an absolute-allocated variable

Forum : 8051

Original Post
Post Information Post
October 9, 2008 - 1:01pm
Guest

Dear sirs,
I have defined such a variable in a C module:
xdata unsigned char at ADDR_OUT_DIG OutDig ;
and I want to refer to this variable also on other modules, so I want to place an extern declaration in an header file such as:
extern xdata unsigned char OutDig ;
but I always get the LX51 --> ERROR 103 : EXTERNAL ATTRIBUTE DO NOT MATCH PUBLIC SYMBOL: OutDig(...)
(why did I cannot copy and paste the error messages from the ride make window???)

Thx
Michele

Replies
Post Information Post
+1
0
-1
October 9, 2008 - 1:19pm
Guest

Solved!
I am porting an old code, and there was two identifiers with the name differing only by the case
outDig OutDig

Is there any way to inform the toolchain that the identifier are case-sensitive?

+1
0
-1
October 10, 2008 - 3:37pm
Guest

Hi

In the c:\ride\doc\LX51.pdf there is a reference to -c,CASESENSITIVE option.
I did not make the trial but it should be enough.

Matloub

+1
0
-1
October 23, 2008 - 12:14am
Guest

Merci matloub,
anyway I've preferred to change the variables names, I think it's a very poor practice the set the same name for different variables...
Best regards