Hello! I have been working on trying to learn how to use a LCD, but code that should work gives me an error message where it can’t compile for Arduino Uno, even though it compiles for a ESP32. Here is my code:
Using board 'uno' from platform in folder: /Users/niko/Library/Arduino15/packages/arduino/hardware/avr/1.8.5
Using core 'arduino' from platform in folder: /Users/niko/Library/Arduino15/packages/arduino/hardware/avr/1.8.5
Detecting libraries used...
/Users/niko/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/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=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Users/niko/Library/Arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino -I/Users/niko/Library/Arduino15/packages/arduino/hardware/avr/1.8.5/variants/standard /private/var/folders/rs/djh9ph251kg3_bd99vcglbn00000gn/T/arduino-sketch-CBCB6A0C8AA6D96249A1D87A9E9C2B8E/sketch/sketch_may12a.ino.cpp -o /dev/null
fork/exec /Users/niko/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++: no such file or directory
Compilation error: fork/exec /Users/niko/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++: no such file or directory