Closed monsoonle closed 2 years ago
did not change anything in the script, when importing the lib into the Arduino IDE 1.8.13 is there any config needs to be set up in order to use this lib?
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Leonard\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10813 -build-path C:\Users\Leonard\AppData\Local\Temp\arduino_build_881616 -warnings=none -build-cache C:\Users\Leonard\AppData\Local\Temp\arduino_cache_89302 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose D:\MHRise-autoLottery-main\autoLottery\autoLottery.ino C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Leonard\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10813 -build-path C:\Users\Leonard\AppData\Local\Temp\arduino_build_881616 -warnings=none -build-cache C:\Users\Leonard\AppData\Local\Temp\arduino_cache_89302 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose D:\MHRise-autoLottery-main\autoLottery\autoLottery.ino Using board 'uno' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr Detecting libraries used... "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\sketch\\autoLottery.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE Alternatives for NintendoSwitchControlLibrary.h: [src] ResolveLibrary(NintendoSwitchControlLibrary.h) -> candidates: [src] "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Users\\Leonard\\Documents\\Arduino\\libraries\\src" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\sketch\\autoLottery.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE Alternatives for HID.h: [HID@1.0] ResolveLibrary(HID.h) -> candidates: [HID@1.0] "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Users\\Leonard\\Documents\\Arduino\\libraries\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\HID\\src" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\sketch\\autoLottery.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Users\\Leonard\\Documents\\Arduino\\libraries\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\HID\\src" "C:\\Users\\Leonard\\Documents\\Arduino\\libraries\\src\\NintendoSwitchControlLibrary.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Users\\Leonard\\Documents\\Arduino\\libraries\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\HID\\src" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\HID\\src\\HID.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE Generating function prototypes... "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Users\\Leonard\\Documents\\Arduino\\libraries\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\HID\\src" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\sketch\\autoLottery.ino.cpp" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\preproc\\ctags_target_for_gcc_minus_e.cpp" -DARDUINO_LIB_DISCOVERY_PHASE "C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\preproc\\ctags_target_for_gcc_minus_e.cpp" Compiling sketch... "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Users\\Leonard\\Documents\\Arduino\\libraries\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\HID\\src" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\sketch\\autoLottery.ino.cpp" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\sketch\\autoLottery.ino.cpp.o" Compiling libraries... Compiling library "src" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Users\\Leonard\\Documents\\Arduino\\libraries\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\HID\\src" "C:\\Users\\Leonard\\Documents\\Arduino\\libraries\\src\\NintendoSwitchControlLibrary.cpp" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\libraries\\src\\NintendoSwitchControlLibrary.cpp.o" Compiling library "HID" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Users\\Leonard\\Documents\\Arduino\\libraries\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\HID\\src" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\HID\\src\\HID.cpp" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\libraries\\HID\\HID.cpp.o" Compiling core... "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -c -g -x assembler-with-cpp -flto -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\wiring_pulse.S" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\wiring_pulse.S.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\WInterrupts.c" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\WInterrupts.c.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\hooks.c" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\hooks.c.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\wiring_shift.c" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\wiring_shift.c.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\wiring.c" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\wiring.c.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\wiring_analog.c" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\wiring_analog.c.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\wiring_digital.c" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\wiring_digital.c.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\wiring_pulse.c" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\wiring_pulse.c.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\HardwareSerial.cpp" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\HardwareSerial.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\IPAddress.cpp" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\IPAddress.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\HardwareSerial1.cpp" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\HardwareSerial1.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\HardwareSerial0.cpp" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\HardwareSerial0.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\PluggableUSB.cpp" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\PluggableUSB.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\HardwareSerial2.cpp" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\HardwareSerial2.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\HardwareSerial3.cpp" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\HardwareSerial3.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\CDC.cpp" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\CDC.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\Print.cpp" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\Print.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\Stream.cpp" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\Stream.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\Tone.cpp" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\Tone.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\USBCore.cpp" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\USBCore.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\WMath.cpp" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\WMath.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\WString.cpp" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\WString.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\abi.cpp" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\abi.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\main.cpp" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\main.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\new.cpp" -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\new.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\wiring_pulse.S.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\WInterrupts.c.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\hooks.c.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\wiring.c.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\wiring_analog.c.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\wiring_digital.c.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\wiring_pulse.c.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\wiring_shift.c.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\CDC.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\HardwareSerial.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\HardwareSerial0.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\HardwareSerial1.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\HardwareSerial2.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\HardwareSerial3.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\IPAddress.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\PluggableUSB.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\Print.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\Stream.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\Tone.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\USBCore.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\WMath.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\WString.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\abi.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\main.cpp.o" "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\core.a" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\core\\new.cpp.o" Archiving built core (caching) in: C:\Users\Leonard\AppData\Local\Temp\arduino_cache_89302\core\core_arduino_avr_uno_0c812875ac70eb4a9b385d8fb077f54c.a Linking everything together... "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616/autoLottery.ino.elf" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\sketch\\autoLottery.ino.cpp.o" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\libraries\\src\\NintendoSwitchControlLibrary.cpp.o" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616\\libraries\\HID\\HID.cpp.o" "C:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616/core\\core.a" "-LC:\\Users\\Leonard\\AppData\\Local\\Temp\\arduino_build_881616" -lm C:\Users\Leonard\AppData\Local\Temp\ccwl5gvU.ltrans0.ltrans.o: In function `pushHat(unsigned char, int, int)': C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:58: undefined reference to `SwitchControlLibrary()' C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:58: undefined reference to `SwitchControlLibrary_::pressHatButton(unsigned char)' C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:59: undefined reference to `SwitchControlLibrary()' C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:59: undefined reference to `SwitchControlLibrary_::sendReport()' C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:61: undefined reference to `SwitchControlLibrary()' C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:61: undefined reference to `SwitchControlLibrary_::releaseHatButton()' C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:62: undefined reference to `SwitchControlLibrary()' C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:62: undefined reference to `SwitchControlLibrary_::sendReport()' C:\Users\Leonard\AppData\Local\Temp\ccwl5gvU.ltrans0.ltrans.o: In function `pushButton(unsigned int, int, int)': C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:24: undefined reference to `SwitchControlLibrary()' C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:24: undefined reference to `SwitchControlLibrary_::pressButton(unsigned int)' C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:25: undefined reference to `SwitchControlLibrary()' C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:25: undefined reference to `SwitchControlLibrary_::sendReport()' C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:27: undefined reference to `SwitchControlLibrary()' C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:27: undefined reference to `SwitchControlLibrary_::releaseButton(unsigned int)' C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:28: undefined reference to `SwitchControlLibrary()' C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:28: undefined reference to `SwitchControlLibrary_::sendReport()' C:\Users\Leonard\AppData\Local\Temp\ccwl5gvU.ltrans0.ltrans.o: In function `holdHat': C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:75: undefined reference to `SwitchControlLibrary()' C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:75: undefined reference to `SwitchControlLibrary_::pressHatButton(unsigned char)' C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:76: undefined reference to `SwitchControlLibrary()' C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:76: undefined reference to `SwitchControlLibrary_::sendReport()' C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:78: undefined reference to `SwitchControlLibrary()' C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:78: undefined reference to `SwitchControlLibrary_::releaseHatButton()' C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:79: undefined reference to `SwitchControlLibrary()' C:\Users\Leonard\Documents\Arduino\libraries\src/NintendoSwitchControlLibrary.cpp:79: undefined reference to `SwitchControlLibrary_::sendReport()' collect2.exe: error: ld returned 1 exit status Using library src in folder: C:\Users\Leonard\Documents\Arduino\libraries\src (legacy) Using library HID at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID exit status 1 Error compiling for board Arduino Uno.
I am currently encountering the same error How can I solve it?
did not change anything in the script, when importing the lib into the Arduino IDE 1.8.13 is there any config needs to be set up in order to use this lib?![image](https://user-images.githubusercontent.com/4703396/184825833-9da85191-b715-481b-91dd-ffb940cddf9f.png)