Trouble while working with arrays

Hi everyone,

I'm struggling for a while know to get my code working, and it doesn't.
Here is the code were the problem comes from.

int page;
boolean b_conf_cal_white;
#define lineSensor[] = {A0, A1, A2, A3, A6, A7, A8, A9};
int calibratedMinimum[8];
void Calibration() {
  if (page == 2) {
    if (b_conf_cal_white == 1) {
      for (i = 0; i <= 7; i++) {
        calibratedMinimum[i] = {analogRead(lineSensor[i])};
      }
    }
  }
}

and I got this error:

error: expected ';' before ')' token

the problem comes fromcalibratedMinimum[i] = {analogRead(lineSensor[i])};

I also have this error at the last line:

expected declaration before '}' token
 }
 ^
expected '{' before '=' token

What am I doing wrong?

Thanks in advance

What am I doing wrong?

Not posting the complete program for a start.

eroor is probably due to

#define lineSensor[] = {A0, A1, A2, A3, A6, A7, A8, A9};

should it be

int lineSensor[] = {A0, A1, A2, A3, A6, A7, A8, A9};

or even better byte lineSensor[] = {A0, A1, A2, A3, A6, A7, A8, A9};

J-M-L:
or even better

byte lineSensor[] = {A0, A1, A2, A3, A6, A7, A8, A9};

Maybe even (more !) better

const byte lineSensor[] = {A0, A1, A2, A3, A6, A7, A8, A9};

UKHeliBob:
Maybe even (more !) better

const byte lineSensor[] = {A0, A1, A2, A3, A6, A7, A8, A9};

I must admit I've not read the code (that was not posted) to see if OP would mess around with the content of the array later on. indeed unlikely

I must admit I've not read the code

Funnily enough, nor have I

thanks guys, it's working now.