Error message for sample stepper motor program

New to Arduino and having problem with compiling sample program for stepper motor. I keep getting an error message of
AF_stepper motor does not name a type. I have downloaded the software for the RB ada 02 motor shield which i plan on using.
Program below.

// ConstantSpeed.pde
// -*- mode: C++ -*-
// Shows how to run AccelStepper in the simplest,
// fixed speed mode with no accelerations
// Requires the AFMotor library (
// And AccelStepper with AFMotor support (
// Public domain!

#include <AccelStepper.h>
#include <AFMotor.h>

AF_Stepper motor1(200, 1);

// you can change these to DOUBLE or INTERLEAVE or MICROSTEP!
void forwardstep() {  
  motor1.onestep(FORWARD, SINGLE);
void backwardstep() {  
  motor1.onestep(BACKWARD, SINGLE);

AccelStepper stepper(forwardstep, backwardstep); // use functions to step

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

void loop()

Moderator edit to put code in code box.
Please use the # icon in future when posting code.

This may happen if the library is not installed and/ or not place on the correct folder. Sure you have the library properly installed as per the instructions in here?

Hi Tecmac Thanks for the info. That was the problem. Rmac XD