I am a new user of Arduinos and I ran into a problem while following the instructions for a MAX7219 LED tutorial. The Sketch for this tutorial includes the use of LedControl library.
I'm getting error messages each time I run a verify on the Stetch I'm not sure if the library is in the correct location or how to troubleshoot this issue.
Using previously compiled file: /var/folders/br/_22d47h16v31_4xr42xvdwb00000gn//T/arduino_build_134797/core/HardwareSerial3.cpp.o
Using previously compiled file: /var/folders/br/_22d47h16v31_4xr42xvdwb00000gn/T/arduino_build_134797/core/IPAddress.cpp.o
Using previously compiled file: /var/folders/br/_22d47h16v31_4xr42xvdwb00000gn/T/arduino_build_134797/core/PluggableUSB.cpp.o
Using previously compiled file: /var/folders/br/_22d47h16v31_4xr42xvdwb00000gn/T/arduino_build_134797/core/Print.cpp.o
Using previously compiled file: /var/folders/br/_22d47h16v31_4xr42xvdwb00000gn/T/arduino_build_134797/core/Stream.cpp.o
Using previously compiled file: /var/folders/br/_22d47h16v31_4xr42xvdwb00000gn/T/arduino_build_134797/core/Tone.cpp.o
Using previously compiled file: /var/folders/br/_22d47h16v31_4xr42xvdwb00000gn/T/arduino_build_134797/core/USBCore.cpp.o
Using previously compiled file: /var/folders/br/_22d47h16v31_4xr42xvdwb00000gn/T/arduino_build_134797/core/WMath.cpp.o
Using previously compiled file: /var/folders/br/_22d47h16v31_4xr42xvdwb00000gn/T/arduino_build_134797/core/WString.cpp.o
Using previously compiled file: /var/folders/br/_22d47h16v31_4xr42xvdwb00000gn/T/arduino_build_134797/core/abi.cpp.o
Using previously compiled file: /var/folders/br/_22d47h16v31_4xr42xvdwb00000gn/T/arduino_build_134797/core/main.cpp.o
Using previously compiled file: /var/folders/br/_22d47h16v31_4xr42xvdwb00000gn/T/arduino_build_134797/core/new.cpp.o
Using previously compiled file: /var/folders/br/_22d47h16v31_4xr42xvdwb00000gn/T/arduino_build_134797/core/core.a
Linking everything together...
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "/var/folders/br/_22d47h16v31_4xr42xvdwb00000gn/T/arduino_build_134797/MAX7219_SpaceInvader.ino.elf" "/var/folders/br/_22d47h16v31_4xr42xvdwb00000gn/T/arduino_build_134797/sketch/MAX7219_SpaceInvader.ino.cpp.o" "/var/folders/br/_22d47h16v31_4xr42xvdwb00000gn/T/arduino_build_134797/core/core.a" "-L/var/folders/br/_22d47h16v31_4xr42xvdwb00000gn/T/arduino_build_134797" -lm
/var/folders/br/_22d47h16v31_4xr42xvdwb00000gn/T//ccvjibsW.ltrans0.ltrans.o: In function setup': /Users/rtolliver/Documents/Arduino/MAX7219_SpaceInvader/MAX7219_SpaceInvader.ino:58: undefined reference to LedControl::shutdown(int, bool)'
/Users/rtolliver/Documents/Arduino/MAX7219_SpaceInvader/MAX7219_SpaceInvader.ino:72: undefined reference to LedControl::setRow(int, int, unsigned char)' /var/folders/br/_22d47h16v31_4xr42xvdwb00000gn/T//ccvjibsW.ltrans0.ltrans.o: In function sinvader2a':
/Users/rtolliver/Documents/Arduino/MAX7219_SpaceInvader/MAX7219_SpaceInvader.ino:88: undefined reference to LedControl::setRow(int, int, unsigned char)' /var/folders/br/_22d47h16v31_4xr42xvdwb00000gn/T//ccvjibsW.ltrans0.ltrans.o: In function sinvader1b':
/Users/rtolliver/Documents/Arduino/MAX7219_SpaceInvader/MAX7219_SpaceInvader.ino:80: undefined reference to LedControl::setRow(int, int, unsigned char)' /var/folders/br/_22d47h16v31_4xr42xvdwb00000gn/T//ccvjibsW.ltrans0.ltrans.o: In function sinvader2b':
/Users/rtolliver/Documents/Arduino/MAX7219_SpaceInvader/MAX7219_SpaceInvader.ino:96: undefined reference to LedControl::setRow(int, int, unsigned char)' /var/folders/br/_22d47h16v31_4xr42xvdwb00000gn/T//ccvjibsW.ltrans0.ltrans.o: In function __static_initialization_and_destruction_0':
/Users/rtolliver/Documents/Arduino/MAX7219_SpaceInvader/MAX7219_SpaceInvader.ino:3: undefined reference to `LedControl::LedControl(int, int, int, int)'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Uno.
I’ve read and followed the links that were sent and I still don’t have an answer nor direction to follow for my stated issue. I was told through a Google search that I could get help from the Arduino.cc Forum
So are we.
The loss we're feeling is that we can't see your code - I think this basic fact is mentioned in the "How to use this forum" thread you were asked to read.