Maker Pro
Maker Pro

Problem with uVision C compiler

  • Thread starter Mahmoud Abdel-Fattah
  • Start date

Mahmoud Abdel-Fattah

Jan 1, 1970
I am using uVision to make a project using Atmel's AT89C51. This part
of the code does not work (it generates a compile error, saying that
it expects a semicolon before the pointer!):

struct reading {
short value;

reading *back;
reading *front;

Now what is the problem? I thought that uVision's 89C51 compiler
supports pointers. At least it is mentioned in the Compiler limits

"A maximum of 19 levels of indirection (access modifiers) to any
data type are supported. This includes array descriptors, indirection
operators, and function descriptors."

What can the problem be? Thank you.