complie error

exit status 1
Error compiling for board Arduino/Genuino Uno.
i am using version 1.6.13 was using 1.8. but still get the same error
can any body help

// Adafruit Motor shield library
// copyright Adafruit Industries LLC, 2009
// this code is public domain, enjoy!

#include <AFMotor.h>

// Connect a stepper motor with 48 steps per revolution (7.5 degree)
// to motor port #2 (M3 and M4)
AF_Stepper motor(48, 2);

void setup() {
  Serial.begin(9600);           // set up Serial library at 9600 bps
  Serial.println("Stepper test!");

  motor.setSpeed(10);  // 10 rpm
}

void loop() {
  Serial.println("Single coil steps");
  motor.step(100, FORWARD, SINGLE);
  motor.step(100, BACKWARD, SINGLE);

  Serial.println("Double coil steps");
  motor.step(100, FORWARD, DOUBLE);
  motor.step(100, BACKWARD, DOUBLE);

  Serial.println("Interleave coil steps");
  motor.step(100, FORWARD, INTERLEAVE);
  motor.step(100, BACKWARD, INTERLEAVE);

  Serial.println("Micrsostep steps");
  motor.step(100, FORWARD, MICROSTEP);
  motor.step(100, BACKWARD, MICROSTEP);
}/code]

andrewfowler:
exit status 1
Error compiling for board Arduino/Genuino Uno.

That's not helpful. We need the FULL error output. If you scroll the black console window at the bottom of the Arduino IDE window up you will see there is much more. When you encounter an error you will see a button on the right side of the orange bar "Copy error messages". Click that button and then paste the error message in a reply here USING CODE TAGS(</> button on the toolbar).

C:\Users\andrew\Documents\Arduino\afmotor\adafruit-Adafruit-Motor-Shield-library-99381df\StepperTest\StepperTest.ino:5:21: fatal error: AFMotor.h: No such file or directory

#include <AFMotor.h>

^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

(deleted)

You need to install the Adafruit Motor Shield Library:

  • Sketch > Include Library > Manage Libraries
  • Wait for download to complete
  • Type "Adafruit motor v1" in the "Filter your search..." box
  • Click on the Adafruit Motor Shield Library entry
  • Click "Install"
  • Wait for installation to complete.
  • Click "Close".

thanks issue is now sorted