This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem with static variable in the functions.

Hi all.
The source C file is...

=============================
void a(void)
{
static unsigned char var1;
...
switch(var1){
...
}
}
==============================
and the error message is
"error A45 : Undefined Symbol (PASS-2)

I know it is compiled well with C51 and
got a.src file using SRC directive.

but I cant get the a.obj file for assembling it.
I thought it may be the same problem as
'Andrew Neil's Question' in this Disccussion Forum'

How can i do for fixing it.

Thanks. :)


Parents
  • You'll have to confirm this in the manual, but I don't think that the A51 Assembler is case-sensitive; therefore you're probably asking for trouble using a name like 'a' for your function - that could well get confused with 'A' for the Accumulator?!

    If that's not the answer, you need to post the Assembler source - as this is an Assembler error!

    "I thought it may be the same problem as 'Andrew Neil's Question' in this Disccussion Forum'"

    Pardon?????????????

Reply
  • You'll have to confirm this in the manual, but I don't think that the A51 Assembler is case-sensitive; therefore you're probably asking for trouble using a name like 'a' for your function - that could well get confused with 'A' for the Accumulator?!

    If that's not the answer, you need to post the Assembler source - as this is an Assembler error!

    "I thought it may be the same problem as 'Andrew Neil's Question' in this Disccussion Forum'"

    Pardon?????????????

Children
No data