HELP Compilation error: exit status 1 can't figure it out

Working on a 3d printed ironman helmet project I found on thingiverse.com (Iron Man Helmet, Articulated, Wearable by Boxandloop - Thingiverse) and I'm working on setting up the arduino nano every I'm on Mac and I'm getting the error code Compilation error: exit status 1 PLEASE HELP!!

not my code

#include "ServoEasing.h" 
ServoEasing servoTop; 
ServoEasing 
servoBottom;

const int action_pin = 2; const int ledPin = 6; const int potPin = A0; int location = 31;
int bottom_closed = 107; int top_closed = 167;
int bottom_open = 20; int top_open = 20;
int value;
int maxBrightness;

void setup() 
{
  pinMode(action_pin, INPUT_PULLUP);
pinMode(potPin, INPUT);
servoTop.attach(9);
servoBottom.attach(10);
setSpeedForAllServos(190); servoTop.setEasingType(EASE_CUBIC_IN_OUT); 
servoBottom.setEasingType(EASE_CUBIC_IN_OUT); 
synchronizeAllServosStartAndWaitForAllServosToStop();

}

void loop() 
{
  value = analogRead(potPin);
maxBrightness = map(value, 250, 750, 0, 255); 
int proximity = digitalRead(action_pin);
if (proximity == LOW)
{
  if (location > bottom_open) { servoTop.setEaseTo(top_open); 
  servoBottom.setEaseTo(bottom_open); 
  synchronizeAllServosStartAndWaitForAllServosToStop(); 
  location = bottom_open;
  delay(10);
  analogWrite(ledPin, 0);
  } else {
servoTop.setEaseTo(top_closed); 
servoBottom.setEaseTo(bottom_closed); 
synchronizeAllServosStartAndWaitForAllServosToStop(); 
location = bottom_closed;
delay(50);
analogWrite(ledPin, maxBrightness / 3); 
delay(100);
analogWrite(ledPin, maxBrightness / 5); 
delay(100);
analogWrite(ledPin, maxBrightness / 2); 
delay(100);
analogWrite(ledPin, maxBrightness / 3); 
delay(100);
analogWrite(ledPin, maxBrightness); 
delay(100);
  } 
 }
}

error message

> /var/folders/_z/nbxtcybx76j8xm5y1_hlt1mc0000gn/T//ccU8s3xG.ltrans0.ltrans.o: In function `setup':
> /private/var/folders/_z/nbxtcybx76j8xm5y1_hlt1mc0000gn/T/.arduinoIDE-unsaved2024425-65190-1wb2kxm.shkz/sketch_may25i/sketch_may25i.ino:16: undefined reference to `ServoEasing::attach(int)'
> /private/var/folders/_z/nbxtcybx76j8xm5y1_hlt1mc0000gn/T/.arduinoIDE-unsaved2024425-65190-1wb2kxm.shkz/sketch_may25i/sketch_may25i.ino:17: undefined reference to `ServoEasing::attach(int)'
> /private/var/folders/_z/nbxtcybx76j8xm5y1_hlt1mc0000gn/T/.arduinoIDE-unsaved2024425-65190-1wb2kxm.shkz/sketch_may25i/sketch_may25i.ino:18: undefined reference to `setSpeedForAllServos(unsigned int)'
> /private/var/folders/_z/nbxtcybx76j8xm5y1_hlt1mc0000gn/T/.arduinoIDE-unsaved2024425-65190-1wb2kxm.shkz/sketch_may25i/sketch_may25i.ino:18: undefined reference to `ServoEasing::setEasingType(unsigned char)'
> /private/var/folders/_z/nbxtcybx76j8xm5y1_hlt1mc0000gn/T/.arduinoIDE-unsaved2024425-65190-1wb2kxm.shkz/sketch_may25i/sketch_may25i.ino:19: undefined reference to `ServoEasing::setEasingType(unsigned char)'
> /private/var/folders/_z/nbxtcybx76j8xm5y1_hlt1mc0000gn/T/.arduinoIDE-unsaved2024425-65190-1wb2kxm.shkz/sketch_may25i/sketch_may25i.ino:20: undefined reference to `synchronizeAllServosStartAndWaitForAllServosToStop()'
> /var/folders/_z/nbxtcybx76j8xm5y1_hlt1mc0000gn/T//ccU8s3xG.ltrans0.ltrans.o: In function `loop':
> /private/var/folders/_z/nbxtcybx76j8xm5y1_hlt1mc0000gn/T/.arduinoIDE-unsaved2024425-65190-1wb2kxm.shkz/sketch_may25i/sketch_may25i.ino:31: undefined reference to `ServoEasing::setEaseTo(int)'
> /private/var/folders/_z/nbxtcybx76j8xm5y1_hlt1mc0000gn/T/.arduinoIDE-unsaved2024425-65190-1wb2kxm.shkz/sketch_may25i/sketch_may25i.ino:32: undefined reference to `ServoEasing::setEaseTo(int)'
> /private/var/folders/_z/nbxtcybx76j8xm5y1_hlt1mc0000gn/T/.arduinoIDE-unsaved2024425-65190-1wb2kxm.shkz/sketch_may25i/sketch_may25i.ino:33: undefined reference to `synchronizeAllServosStartAndWaitForAllServosToStop()'
> /private/var/folders/_z/nbxtcybx76j8xm5y1_hlt1mc0000gn/T/.arduinoIDE-unsaved2024425-65190-1wb2kxm.shkz/sketch_may25i/sketch_may25i.ino:38: undefined reference to `ServoEasing::setEaseTo(int)'
> /private/var/folders/_z/nbxtcybx76j8xm5y1_hlt1mc0000gn/T/.arduinoIDE-unsaved2024425-65190-1wb2kxm.shkz/sketch_may25i/sketch_may25i.ino:39: undefined reference to `ServoEasing::setEaseTo(int)'
> /private/var/folders/_z/nbxtcybx76j8xm5y1_hlt1mc0000gn/T/.arduinoIDE-unsaved2024425-65190-1wb2kxm.shkz/sketch_may25i/sketch_may25i.ino:40: undefined reference to `synchronizeAllServosStartAndWaitForAllServosToStop()'
> /var/folders/_z/nbxtcybx76j8xm5y1_hlt1mc0000gn/T//ccU8s3xG.ltrans0.ltrans.o: In function `_GLOBAL__sub_I_servoTop':
> /private/var/folders/_z/nbxtcybx76j8xm5y1_hlt1mc0000gn/T/.arduinoIDE-unsaved2024425-65190-1wb2kxm.shkz/sketch_may25i/sketch_may25i.ino:2: undefined reference to `ServoEasing::ServoEasing()'
> /private/var/folders/_z/nbxtcybx76j8xm5y1_hlt1mc0000gn/T/.arduinoIDE-unsaved2024425-65190-1wb2kxm.shkz/sketch_may25i/sketch_may25i.ino:4: undefined reference to `ServoEasing::ServoEasing()'
> collect2: error: ld returned 1 exit status
> 
> exit status 1
> 
> Compilation error: exit status 1

Please check the example files for the use of ServoEasing.

this is all it says
#include "ServoEasing.h" ServoEasing servoTop; ServoEasing servoBottom;

Then install ServoEasing library again.

just did nothing changed

Please try one of the examples. If the errors persist then your board is not supported. Else your sketch may apply to an older version of the library. At least the begin of "TwoServos.ino" looks different from your presented code.

so what should I do. sorry I'm a super beginner and have no idea what I'm doing I'm just trying to get this working

You can not make it work for some unknown reason. Start with some other project.

I just don't know anything about arduinos or why I'm getting the error

Change the line:

#include "ServoEasing.h"

to the following:

#include "ServoEasing.hpp"

that worked but now I have a uploading error

avrdude: jtagmkII_getsync(): timeout/error communicating with programmer (status -1)
Failed uploading: uploading error: exit status 1

@bradley824 has started a new topic about the upload problem: Uploading error: exit status 1.

Please mark this topic as solved by clicking the checkbox under the most useful reply (post #10). This will indicate to others (e.g. those that encounter the same problem) that a solution was provided.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.