I’m using IDE version 2.0.3. The only thing I edited from the file was uncommenting the Adafruit GFX definition, uncommenting a hardware type, and changing the brightness. Could someone help me figure out what these errors mean? C++ is not my main language
As an note, the adafruit gfx and smartmatrix libraries are installed and I am using Teensyduino 1.58
The full verbose compilation cannot be pasted due to character limitations but here are the errors themselves
In file included from C:\Users\mattm\AppData\Local\Temp\.arduinoIDE-unsaved2023231-21372-bwdqab.rz6mn\FeatureDemo\FeatureDemo.ino:20:
c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/MatrixHardware_Teensy4_ShieldV4Adapter.h:47:17: note: '#pragma message: MatrixHardware: Teensy 4 Adapter attached to SmartLED Shield for Teensy 3 (V4)'
47 | #pragma message "MatrixHardware: Teensy 4 Adapter attached to SmartLED Shield for Teensy 3 (V4)"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\mattm\AppData\Local\Temp\.arduinoIDE-unsaved2023231-21372-bwdqab.rz6mn\FeatureDemo\FeatureDemo.ino:23:
c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/SmartMatrix.h:40:21: note: '#pragma message: SmartMatrix Library version 4.000.003'
40 | # pragma message "SmartMatrix Library version 4.000.003"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/Layer_BackgroundGfx.h:173,
from c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/SmartMatrix.h:59,
from C:\Users\mattm\AppData\Local\Temp\.arduinoIDE-unsaved2023231-21372-bwdqab.rz6mn\FeatureDemo\FeatureDemo.ino:23:
c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/Layer_BackgroundGfx_Impl.h: In instantiation of 'void SMLayerBackgroundGFX<RGB, optionFlags>::swapBuffers(bool) [with RGB = rgb24; unsigned int optionFlags = 0]':
C:\Users\mattm\AppData\Local\Temp\.arduinoIDE-unsaved2023231-21372-bwdqab.rz6mn\FeatureDemo\FeatureDemo.ino:126:32: required from here
c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/Layer_BackgroundGfx_Impl.h:197:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct rgb24' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
197 | memcpy(backgroundBuffers[1], backgroundBuffers[0], sizeof(RGB) * (this->matrixWidth * this->matrixHeight));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/SmartMatrix.h:50,
from C:\Users\mattm\AppData\Local\Temp\.arduinoIDE-unsaved2023231-21372-bwdqab.rz6mn\FeatureDemo\FeatureDemo.ino:23:
c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/MatrixCommon.h:139:16: note: 'struct rgb24' declared here
139 | typedef struct rgb24 {
| ^~~~~
In file included from c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/Layer_BackgroundGfx.h:173,
from c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/SmartMatrix.h:59,
from C:\Users\mattm\AppData\Local\Temp\.arduinoIDE-unsaved2023231-21372-bwdqab.rz6mn\FeatureDemo\FeatureDemo.ino:23:
c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/Layer_BackgroundGfx_Impl.h:199:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct rgb24' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
199 | memcpy(backgroundBuffers[0], backgroundBuffers[1], sizeof(RGB) * (this->matrixWidth * this->matrixHeight));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/SmartMatrix.h:50,
from C:\Users\mattm\AppData\Local\Temp\.arduinoIDE-unsaved2023231-21372-bwdqab.rz6mn\FeatureDemo\FeatureDemo.ino:23:
c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/MatrixCommon.h:139:16: note: 'struct rgb24' declared here
139 | typedef struct rgb24 {
| ^~~~~
In file included from c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/SmartMatrix.h:218,
from C:\Users\mattm\AppData\Local\Temp\.arduinoIDE-unsaved2023231-21372-bwdqab.rz6mn\FeatureDemo\FeatureDemo.ino:23:
c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/MatrixTeensy4Hub75Refresh_Impl.h: In instantiation of 'static void SmartMatrixRefreshT4<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::hardwareSetup() [with int refreshDepth = 36; int matrixWidth = 64; int matrixHeight = 64; unsigned char panelType = 2; long unsigned int optionFlags = 0]':
c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/MatrixTeensy4Hub75Refresh_Impl.h:389:18: required from 'static void SmartMatrixRefreshT4<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::begin() [with int refreshDepth = 36; int matrixWidth = 64; int matrixHeight = 64; unsigned char panelType = 2; long unsigned int optionFlags = 0]'
c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/MatrixTeensy4Hub75Calc_Impl.h:272:97: required from 'void SmartMatrixHub75Calc<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::begin() [with int refreshDepth = 36; int matrixWidth = 64; int matrixHeight = 64; unsigned char panelType = 2; long unsigned int optionFlags = 0]'
C:\Users\mattm\AppData\Local\Temp\.arduinoIDE-unsaved2023231-21372-bwdqab.rz6mn\FeatureDemo\FeatureDemo.ino:82:15: required from here
c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/MatrixTeensy4Hub75Refresh_Impl.h:669:88: warning: taking address of packed member of 'SmartMatrixRefreshT4<36, 64, 64, 2, 0>::timerpair' may result in an unaligned pointer value [-Waddress-of-packed-member]
669 | sourceAddress = (volatile uint32_t*) & (matrixUpdateRows[0].rowbits[0].timerValues.timer_oe);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/SmartMatrix.h:219,
from C:\Users\mattm\AppData\Local\Temp\.arduinoIDE-unsaved2023231-21372-bwdqab.rz6mn\FeatureDemo\FeatureDemo.ino:23:
c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/MatrixTeensy4Hub75Calc_Impl.h: In instantiation of 'static void SmartMatrixHub75Calc<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::loadMatrixBuffers48(volatile rowDataStruct*, unsigned int) [with int refreshDepth = 36; int matrixWidth = 64; int matrixHeight = 64; unsigned char panelType = 2; long unsigned int optionFlags = 0; SmartMatrixHub75Calc<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::rowDataStruct = SmartMatrixRefreshT4<36, 64, 64, 2, 0>::rowDataStruct]':
c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/MatrixTeensy4Hub75Calc_Impl.h:548:24: required from 'static void SmartMatrixHub75Calc<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::loadMatrixBuffers(unsigned int) [with int refreshDepth = 36; int matrixWidth = 64; int matrixHeight = 64; unsigned char panelType = 2; long unsigned int optionFlags = 0]'
c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/MatrixTeensy4Hub75Calc_Impl.h:168:113: required from 'static void SmartMatrixHub75Calc<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::matrixCalculations(bool) [with int refreshDepth = 36; int matrixWidth = 64; int matrixHeight = 64; unsigned char panelType = 2; long unsigned int optionFlags = 0]'
c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/MatrixTeensy4Hub75Calc_Impl.h:270:121: required from 'void SmartMatrixHub75Calc<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::begin() [with int refreshDepth = 36; int matrixWidth = 64; int matrixHeight = 64; unsigned char panelType = 2; long unsigned int optionFlags = 0]'
C:\Users\mattm\AppData\Local\Temp\.arduinoIDE-unsaved2023231-21372-bwdqab.rz6mn\FeatureDemo\FeatureDemo.ino:82:15: required from here
c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/MatrixTeensy4Hub75Calc_Impl.h:384:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'rgb48' {aka 'struct rgb48'}; use assignment or value-initialization instead [-Wclass-memaccess]
384 | memset(tempRow0, 0, sizeof(tempRow0));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/SmartMatrix.h:50,
from C:\Users\mattm\AppData\Local\Temp\.arduinoIDE-unsaved2023231-21372-bwdqab.rz6mn\FeatureDemo\FeatureDemo.ino:23:
c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/MatrixCommon.h:159:16: note: 'rgb48' {aka 'struct rgb48'} declared here
159 | typedef struct rgb48 {
| ^~~~~
In file included from c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/SmartMatrix.h:219,
from C:\Users\mattm\AppData\Local\Temp\.arduinoIDE-unsaved2023231-21372-bwdqab.rz6mn\FeatureDemo\FeatureDemo.ino:23:
c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/MatrixTeensy4Hub75Calc_Impl.h:385:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'rgb48' {aka 'struct rgb48'}; use assignment or value-initialization instead [-Wclass-memaccess]
385 | memset(tempRow1, 0, sizeof(tempRow1));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/SmartMatrix.h:50,
from C:\Users\mattm\AppData\Local\Temp\.arduinoIDE-unsaved2023231-21372-bwdqab.rz6mn\FeatureDemo\FeatureDemo.ino:23:
c:\Users\mattm\Desktop\Personal\Programming\libraries\SmartMatrix\src/MatrixCommon.h:159:16: note: 'rgb48' {aka 'struct rgb48'} declared here
159 | typedef struct rgb48 {
| ^~~~~
c:/users/mattm/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol ImageVectorTable; not setting start address
c:/users/mattm/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\mattm\AppData\Local\Temp\arduino-sketch-54DCA8E9548E59ABBA27A51D2E669FFE\sketch\FeatureDemo.ino.cpp.o: in function `SmartMatrixRefreshT4<36, 64, 64, (unsigned char)2, 0ul>::SmartMatrixRefreshT4(unsigned char, SmartMatrixRefreshT4<36, 64, 64, (unsigned char)2, 0ul>::rowDataStruct volatile*)':
C:\Users\mattm\AppData\Local\Temp\.arduinoIDE-unsaved2023231-21372-bwdqab.rz6mn\FeatureDemo/FeatureDemo.ino:271: undefined reference to `F_BUS_ACTUAL'
c:/users/mattm/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\mattm\AppData\Local\Temp\arduino-sketch-54DCA8E9548E59ABBA27A51D2E669FFE/..\arduino-core-cache\core_d3561931a4893bfba8e7da3709f5b875.a(Print.cpp.o): in function `usb_serial_class::write(unsigned char)':
C:\Users\mattm\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.0\cores\teensy4/usb_serial.h:114: undefined reference to `usb_serial_putchar'
c:/users/mattm/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\mattm\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.0\cores\teensy4/usb_serial.h:114: undefined reference to `usb_serial_putchar'
c:/users/mattm/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: c:/users/mattm/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libc.a(libc_a-sbrkr.o): in function `_sbrk_r':
(.text._sbrk_r+0xc): undefined reference to `_sbrk'
collect2.exe: error: ld returned 1 exit status