Library Question

This is quite a simple problem. I am trying to load my servo library, but keep getting this error

In file included from C:\Users\user\Desktop\ARC lab\arduino-0013\hardware\cores\arduino/WProgram.h:4,

c:/users/user/desktop/arc lab/arduino-0013/hardware/tools/avr/lib/gcc/…/…/avr/include/stdlib.h:111: error: expected unqualified-id before ‘int’

c:/users/user/desktop/arc lab/arduino-0013/hardware/tools/avr/lib/gcc/…/…/avr/include/stdlib.h:111: error: expected `)’ before ‘int’

c:/users/user/desktop/arc lab/arduino-0013/hardware/tools/avr/lib/gcc/…/…/avr/include/stdlib.h:111: error: expected `)’ before ‘int’

In file included from C:\Users\user\Desktop\ARC lab\arduino-0013\hardware\cores\arduino/WProgram.h:6,

This happens when I run the included example, looking like this

// Sweep
// by BARRAGAN <> 

#include <Servo.h> 
 
Servo myservo;  // create servo object to control a servo 
                // a maximum of eight servo objects can be created 
 
int pos = 0;    // variable to store the servo position 
 
void setup() 
{ 
  myservo.attach(9);  // attaches the servo on pin 9 to the servo object 
} 
 
 
void loop() 
{ 
  for(pos = 0; pos < 180; pos += 1)  // goes from 0 degrees to 180 degrees 
  {                                  // in steps of 1 degree 
    myservo.write(pos);              // tell servo to go to position in variable 'pos' 
    delay(15);                       // waits 15ms for the servo to reach the position 
  } 
  for(pos = 180; pos>=1; pos-=1)     // goes from 180 degrees to 0 degrees 
  {                                
    myservo.write(pos);              // tell servo to go to position in variable 'pos' 
    delay(15);                       // waits 15ms for the servo to reach the position 
  } 
}

When I try to run the included example involving a stepper motor I get no problems, the example stepper program is this

/*
 * MotorKnob
 *
 * A stepper motor follows the turns of a potentiometer
 * (or other sensor) on analog input 0.
 *
 * 
 */

#include <Stepper.h>

// change this to the number of steps on your motor
#define STEPS 100

// create an instance of the stepper class, specifying
// the number of steps of the motor and the pins it's
// attached to
Stepper stepper(STEPS, 8, 9, 10, 11);

// the previous reading from the analog input
int previous = 0;

void setup()
{
  // set the speed of the motor to 30 RPMs
  stepper.setSpeed(30);
}

void loop()
{
  // get the sensor value
  int val = analogRead(0);

  // move a number of steps equal to the change in the
  // sensor reading
  stepper.step(val - previous);

  // remember the previous value of the sensor
  previous = val;
}

So i can call the stepper library, so maybe my servo library is no good? Any feedbck would be appreciated

Are you on a Mega? If so, get MegaServo. They've remapped some pins since, this solved some problems for me.

I am using a Duemilanove, with an Atmega328 on board. I tried to use the MegaServo and it fixed my problems! Thank you very much