error: undefined reference to ''

Hello,

I am having multiple errors can someone please help.
the code is attached below
the error is posted as a comment
Thanks for any help

code.zip (11 KB)

I looked at your code but I do not have the ambition to build and test your project. You might let us know what some of the errors are and include a schematic (not a frizzy thing) if it is relevant. I do not own a crystal ball so I have no idea of what IDE or hardware you are using.

I don't see the "error posted as a comment"... need to see the entire error listing.

error is:
/home/builder/opt/arduino-builder/arduino-builder -compile -core-api-version 10611 -hardware /home/builder/opt/arduino-builder/hardware -hardware /home/builder/.arduino15/packages -tools /home/builder/opt/arduino-builder/tools -tools /home/builder/.arduino15/packages -built-in-libraries /home/builder/opt/libraries/latest -logger humantags -fqbn arduino:avr:leonardoeth -build-cache /tmp -build-path /tmp/185946564/build -verbose -prefs runtime.tools.arduinoOTA.path=/home/builder/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs runtime.tools.avr-gcc.path=/home/builder/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs runtime.tools.avrdude.path=/home/builder/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs runtime.tools.core2-32-poky-linux.path=/home/builder/.arduino15/packages/Intel/tools/core2-32-poky-linux/1.6.2+1.0 -prefs runtime.tools.arm-linux-gcc.path=/home/builder/.arduino15/packages/arduino/tools/arm-linux-gcc/4.9.3 -prefs runtime.tools.esptool.path=/home/builder/.arduino15/packages/esp8266/tools/esptool/2.5.0-3-20ed2b9 -prefs runtime.tools.sketchUploader.path=/home/builder/.arduino15/packages/Intel/tools/sketchUploader/1.6.2+1.0 -prefs runtime.tools.arc-elf32.path=/home/builder/.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1 -prefs runtime.tools.i586-poky-linux-uclibc.path=/home/builder/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0 -prefs runtime.tools.arduino101load.path=/home/builder/.arduino15/packages/Intel/tools/arduino101load/2.0.1 -prefs runtime.tools.bossac.path=/home/builder/.arduino15/packages/industruino/tools/bossac/1.7.0-industruino -prefs runtime.tools.mkspiffs.path=/home/builder/.arduino15/packages/esp8266/tools/mkspiffs/2.5.0-3-20ed2b9 -prefs runtime.tools.xtensa-lx106-elf-gcc.path=/home/builder/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9 -prefs runtime.tools.linuxuploader.path=/home/builder/.arduino15/packages/arduino/tools/linuxuploader/1.5.1 -prefs runtime.tools.nrf5x-cl-tools.path=/home/builder/.arduino15/packages/arduino/tools/nrf5x-cl-tools/9.3.1 -prefs runtime.tools.CMSIS.path=/home/builder/.arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs runtime.tools.x86-linux-gcc.path=/home/builder/.arduino15/packages/arduino/tools/x86-linux-gcc/7.2.0 -prefs runtime.tools.arm-none-eabi-gcc.path=/home/builder/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs runtime.tools.flashpack.path=/home/builder/.arduino15/packages/Intel/tools/flashpack/2.0.0 -prefs runtime.tools.CMSIS-Atmel.path=/home/builder/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs runtime.tools.dfu-util.path=/home/builder/.arduino15/packages/arduino/tools/dfu-util/0.9.0-arduino2 -prefs runtime.tools.openocd.path=/home/builder/.arduino15/packages/Intel/tools/openocd/0.9.0+0.1 -libraries /tmp/185946564/custom -libraries /tmp/185946564/pinned /tmp/185946564/sketch_jan16a
Multiple libraries were found for "IRremote.h"
Used: /tmp/185946564/custom/IRremote
Not used: /home/builder/opt/libraries/latest/irremote_2_8_1
Using library IRremote at version 2.2.3 in folder: /tmp/185946564/custom/IRremote
Using library Wire at version 1.0 in folder: /home/builder/.arduino15/packages/arduino/hardware/avr/1.8.2/libraries/Wire
/tmp/ccCwrYlW.ltrans0.ltrans.o: In function global constructors keyed to 65535_0_sketch_jan16a.ino.cpp.o.2992': <artificial>:(.text.startup+0x40): undefined reference to Freenove_WS2812B_Controller::Freenove_WS2812B_Controller(unsigned char, unsigned short, LED_TYPE)'
/tmp/ccCwrYlW.ltrans0.ltrans.o: In function setup': /tmp/185946564/sketch_jan16a/sketch_jan16a.ino:2097: undefined reference to Freenove_WS2812B_Controller::begin()'
/tmp/ccCwrYlW.ltrans0.ltrans.o: In function loop': /tmp/185946564/sketch_jan16a/sketch_jan16a.ino:2169: undefined reference to motorRun(int, int)'
/tmp/185946564/sketch_jan16a/sketch_jan16a.ino:2170: undefined reference to setBuzzer(bool)' /tmp/185946564/sketch_jan16a/sketch_jan16a.ino:2113: undefined reference to motorRun(int, int)'
/tmp/185946564/sketch_jan16a/sketch_jan16a.ino:2122: undefined reference to setBuzzer(bool)' /tmp/185946564/sketch_jan16a/sketch_jan16a.ino:2181: undefined reference to Freenove_WS2812B_Controller::Wheel(unsigned char)'
/tmp/185946564/sketch_jan16a/sketch_jan16a.ino:2181: undefined reference to Freenove_WS2812B_Controller::setLedColorData(unsigned char, unsigned long)' /tmp/185946564/sketch_jan16a/sketch_jan16a.ino:2183: undefined reference to Freenove_WS2812B_Controller::show()'
/tmp/185946564/sketch_jan16a/sketch_jan16a.ino:2191: undefined reference to Freenove_WS2812B_Controller::Wheel(unsigned char)' /tmp/185946564/sketch_jan16a/sketch_jan16a.ino:2191: undefined reference to Freenove_WS2812B_Controller::setLedColor(unsigned char, unsigned long)'
collect2: error: ld returned 1 exit status
exit status 1

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