' ' '
C:\Users\FEDDES~1\AppData\Local\Temp\cc5Gk3it.ltrans0.ltrans.o: In function setup': C:\Users\Fedde Stoof\Downloads\iron-man-arduino/iron-man-arduino.ino:11: undefined reference to ServoEasing::attach(int)'
C:\Users\Fedde Stoof\Downloads\iron-man-arduino/iron-man-arduino.ino:11: undefined reference to ServoEasing::attach(int)' C:\Users\Fedde Stoof\Downloads\iron-man-arduino/iron-man-arduino.ino:11: undefined reference to setSpeedForAllServos(unsigned int)'
C:\Users\Fedde Stoof\Downloads\iron-man-arduino/iron-man-arduino.ino:11: undefined reference to ServoEasing::setEasingType(unsigned char)' C:\Users\Fedde Stoof\Downloads\iron-man-arduino/iron-man-arduino.ino:11: undefined reference to ServoEasing::setEasingType(unsigned char)'
C:\Users\Fedde Stoof\Downloads\iron-man-arduino/iron-man-arduino.ino:11: undefined reference to synchronizeAllServosStartAndWaitForAllServosToStop()' C:\Users\FEDDES~1\AppData\Local\Temp\cc5Gk3it.ltrans0.ltrans.o: In function loop':
C:\Users\Fedde Stoof\Downloads\iron-man-arduino/iron-man-arduino.ino:18: undefined reference to ServoEasing::setEaseTo(int)' C:\Users\Fedde Stoof\Downloads\iron-man-arduino/iron-man-arduino.ino:18: undefined reference to ServoEasing::setEaseTo(int)'
C:\Users\Fedde Stoof\Downloads\iron-man-arduino/iron-man-arduino.ino:18: undefined reference to synchronizeAllServosStartAndWaitForAllServosToStop()' C:\Users\Fedde Stoof\Downloads\iron-man-arduino/iron-man-arduino.ino:20: undefined reference to ServoEasing::setEaseTo(int)'
C:\Users\Fedde Stoof\Downloads\iron-man-arduino/iron-man-arduino.ino:20: undefined reference to ServoEasing::setEaseTo(int)' C:\Users\Fedde Stoof\Downloads\iron-man-arduino/iron-man-arduino.ino:20: undefined reference to synchronizeAllServosStartAndWaitForAllServosToStop()'
C:\Users\FEDDES~1\AppData\Local\Temp\cc5Gk3it.ltrans0.ltrans.o: In function _GLOBAL__sub_I_servoTop': C:\Users\Fedde Stoof\Downloads\iron-man-arduino/iron-man-arduino.ino:2: undefined reference to ServoEasing::ServoEasing()'
C:\Users\Fedde Stoof\Downloads\iron-man-arduino/iron-man-arduino.ino:3: undefined reference to `ServoEasing::ServoEasing()'
collect2.exe: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1
' ' '
does someone know what i did wrong? im trying to make an iron man helmet from box and loop, this is the code:
(which, in case you don't recognize it, is your code, properly formatted) this is the output I got:
arduino-cli compile -b arduino:avr:uno --warnings all --output-dir ~/tmp --no-color (in directory: /home/me/Documents/sketchbook/Uno_R3/test)
In file included from /home/me/Documents/sketchbook/Uno_R3/test/test.ino:1:0:
/home/me/Documents/sketchbook/libraries/ServoEasing-master/src/ServoEasing.h:950:2: warning: #warning You probably must change the line #include "ServoEasing.h" to #include "ServoEasing.hpp" in your ino file or define SUPPRESS_HPP_WARNING before the include to suppress this warning. [-Wcpp]
#warning You probably must change the line #include "ServoEasing.h" to #include "ServoEasing.hpp" in your ino file or define SUPPRESS_HPP_WARNING before the include to suppress this warning.
^~~~~~~
/home/me/Documents/sketchbook/Uno_R3/test/test.ino: In function 'void loop()':
/home/me/Documents/sketchbook/Uno_R3/test/test.ino:23:22: error: 'bottom_open' was not declared in this scope
if( location > bottom_open ) {
^~~~~~~~~~~
/home/me/Documents/sketchbook/Uno_R3/test/test.ino:24:29: error: 'top_open' was not declared in this scope
servoTop.setEaseTo(top_open);
^~~~~~~~
/home/me/Documents/sketchbook/Uno_R3/test/test.ino:24:29: note: suggested alternative: 'fdopen'
servoTop.setEaseTo(top_open);
^~~~~~~~
fdopen
/home/me/Documents/sketchbook/Uno_R3/test/test.ino:30:29: error: 'top_closed' was not declared in this scope
servoTop.setEaseTo(top_closed);
^~~~~~~~~~
/home/me/Documents/sketchbook/Uno_R3/test/test.ino:30:29: note: suggested alternative: 'fclose'
servoTop.setEaseTo(top_closed);
^~~~~~~~~~
fclose
/home/me/Documents/sketchbook/Uno_R3/test/test.ino:31:32: error: 'bottom_closed' was not declared in this scope
servoBottom.setEaseTo(bottom_closed);
^~~~~~~~~~~~~
Used library Version Path
ServoEasing 3.5.0 /home/me/Documents/sketchbook/libraries/ServoEasing-master
Servo 1.2.1 /home/me/Documents/sketchbook/libraries/Servo
Used platform Version Path
arduino:avr 1.8.3 /home/me/.arduino15/packages/arduino/hardware/avr/1.8.3
Error during build: exit status 1
Compilation failed.
Now, aside from being readable, it appears to be a completely different problem than you say you're getting. The compiler is complaining, as it should, about four undefined variables.
This path, in your unformatted, illegible error output, gives me pause:
Your sketch is not contained in the sketchbook directory, which is somewhat unusual. I wonder if that it why your sketch doesn't seem to be able to find your libraries.
And you still haven't posted the code correctly. However, first, use the Menu Tools and select the Auto Format option. Now, post it either using the menu option Edit Copy for the forum or the tag in your reply.
Use verbose errors, and post the entire error log also in a code tag.
Notice the warning at the start of the error log. I would obey that first before posting again.