I have recieved this error on 2 occasions with adding code to an exsiting code.
Arduino: 1.8.4 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
C:\Users\bob\Documents\Arduino\Sketches\sketch_nov12d\sketch_nov12d.ino: In function 'void loop()':
sketch_nov12d:32: error: request for member 'write' in 'servo', which is of non-class type 'SoftwareServo [6]'
servo.write(i);
^
sketch_nov12d:34: error: expected '}' before 'else'
} else { //We are located at sstart and need to go to sstop
^
sketch_nov12d:36: error: request for member 'write' in 'servo', which is of non-class type 'SoftwareServo [6]'
servo.write(i);
^
sketch_nov12d:46: error: expected '}' at end of input
}
^
exit status 1
request for member 'write' in 'servo', which is of non-class type 'SoftwareServo [6]'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.