1
Arduino: 1.8.14 (Windows Store 1.8.45.0) (Windows 10), Board: "Arduino Uno"

In file included from C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.45.0_x86__mdqgnx93n4wtt\libraries\Servo\src/Servo.h:63:0,

                 from C:\Users\Msi\Documents\Arduino\final_dost\final_dost.ino:7:

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.45.0_x86__mdqgnx93n4wtt\libraries\Servo\src/avr/ServoTimers.h:57:1: error: expected initializer before 'typedef'

 typedef enum { _timer1, _Nbr_16timers } timer16_Sequence_t;

 ^~~~~~~

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.45.0_x86__mdqgnx93n4wtt\libraries\Servo\src/avr/ServoTimers.h:57:41: error: 'timer16_Sequence_t' does not name a type

 typedef enum { _timer1, _Nbr_16timers } timer16_Sequence_t;

                                         ^~~~~~~~~~~~~~~~~~

Multiple libraries were found for "AFMotor.h"

 Used: C:\Users\Msi\Documents\Arduino\libraries\adafruit-Adafruit-Motor-Shield-library-d815040

 Not used: C:\Users\Msi\Documents\Arduino\libraries\Adafruit-Motor-Shield-library-master

exit status 1

Error compiling for board Arduino Uno.



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
2
  • 4
    Please show your code. The problem most likely is in the lines before that, something like a missing semicolon or so – chrisl May 15 at 7:33
  • 4
    It says “expected initializer before 'typedef'”. That's where you have to search for the problem: before that line. – Edgar Bonet May 15 at 7:57

Browse other questions tagged or ask your own question.