Seeking Working GIF/SD Teensy sketch

Thank you for writing back with your suggestions. They didn’t work, as I expected and have always experienced. Anyone, please point me to a WORKING 32x32 SmartMatrix with SD card that actually works. Did fresh install and managed all .h files requred and switched #define SD_CS 15 all to no avail.
Here is the error messages:

Arduino: 1.8.16 (Mac OS X), Board: "Arduino Yún"











In file included from /Volumes/EXTERNAL HD/Arduino/Sketchbook/Teensy32x32MatrixSlideshow-main/Slideshow/Slideshow.ino:7:0:
/Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix/src/MatrixHardware_Teensy3_ShieldV1toV3.h:29:17: note: #pragma message: MatrixHardware: SmartMatrix Shield for Teensy 3 V1-V3
 #pragma message "MatrixHardware: SmartMatrix Shield for Teensy 3 V1-V3"
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Volumes/EXTERNAL HD/Arduino/Sketchbook/Teensy32x32MatrixSlideshow-main/Slideshow/Slideshow.ino:9:0:
/Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix/src/SmartMatrix.h:40:21: note: #pragma message: SmartMatrix Library version 4.000.003
 #    pragma message "SmartMatrix Library version 4.000.003"
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Slideshow:22:29: error: expected constructor, destructor, or type conversion before '(' token
 SMARTMATRIX_ALLOCATE_BUFFERS(matrix, kMatrixWidth, kMatrixHeight, kRefreshDepth, kDmaBufferRows, kPanelType, kMatrixOptions);
                             ^
Slideshow:23:38: error: expected constructor, destructor, or type conversion before '(' token
 SMARTMATRIX_ALLOCATE_BACKGROUND_LAYER(backgroundLayer, kMatrixWidth, kMatrixHeight, COLOR_DEPTH, kBackgroundLayerOptions);
                                      ^
Slideshow:24:37: error: expected constructor, destructor, or type conversion before '(' token
 SMARTMATRIX_ALLOCATE_SCROLLING_LAYER(scrollingLayer, kMatrixWidth, kMatrixHeight, COLOR_DEPTH, kScrollingLayerOptions);
                                     ^
Slideshow:25:35: error: expected constructor, destructor, or type conversion before '(' token
 SMARTMATRIX_ALLOCATE_INDEXED_LAYER(indexedLayer, kMatrixWidth, kMatrixHeight, COLOR_DEPTH, kIndexedLayerOptions);
                                   ^
/Volumes/EXTERNAL HD/Arduino/Sketchbook/Teensy32x32MatrixSlideshow-main/Slideshow/Slideshow.ino: In function 'void setup()':
Slideshow:58:3: error: 'matrix' was not declared in this scope
   matrix.addLayer(&backgroundLayer);
   ^~~~~~
/Volumes/EXTERNAL HD/Arduino/Sketchbook/Teensy32x32MatrixSlideshow-main/Slideshow/Slideshow.ino:58:3: note: suggested alternative: 'atoi'
   matrix.addLayer(&backgroundLayer);
   ^~~~~~
   atoi
Slideshow:58:20: error: 'backgroundLayer' was not declared in this scope
   matrix.addLayer(&backgroundLayer);
                    ^~~~~~~~~~~~~~~
/Volumes/EXTERNAL HD/Arduino/Sketchbook/Teensy32x32MatrixSlideshow-main/Slideshow/Slideshow.ino:58:20: note: suggested alternative: 'kBackgroundLayerOptions'
   matrix.addLayer(&backgroundLayer);
                    ^~~~~~~~~~~~~~~
                    kBackgroundLayerOptions
Slideshow:59:20: error: 'scrollingLayer' was not declared in this scope
   matrix.addLayer(&scrollingLayer);
                    ^~~~~~~~~~~~~~
Slideshow:60:20: error: 'indexedLayer' was not declared in this scope
   matrix.addLayer(&indexedLayer);
                    ^~~~~~~~~~~~
Slideshow:67:29: error: 'cc24' was not declared in this scope
   matrix.setColorCorrection(cc24);
                             ^~~~
/Volumes/EXTERNAL HD/Arduino/Sketchbook/Teensy32x32MatrixSlideshow-main/Slideshow/Slideshow.ino:67:29: note: suggested alternative: '._24'
   matrix.setColorCorrection(cc24);
                             ^~~~
                             ._24
/Volumes/EXTERNAL HD/Arduino/Sketchbook/Teensy32x32MatrixSlideshow-main/Slideshow/Slideshow.ino: In function 'void loop()':
Slideshow:90:14: error: 'FatFile* FatVolume::vwd()' is private within this context
       sd.vwd()->seekSet(pos);
              ^
In file included from /Users/alfredolivas/Documents/Arduino/libraries/SdFat/src/FatLib/FatLib.h:27:0,
                 from /Users/alfredolivas/Documents/Arduino/libraries/SdFat/src/SdFat.h:34,
                 from /Volumes/EXTERNAL HD/Arduino/Sketchbook/Teensy32x32MatrixSlideshow-main/Slideshow/Slideshow.ino:3:
/Users/alfredolivas/Documents/Arduino/libraries/SdFat/src/FatLib/FatVolume.h:336:12: note: declared private here
   FatFile* vwd() {return &m_vwd;}
            ^~~
Slideshow:91:32: error: 'FatFile* FatVolume::vwd()' is private within this context
       if(!file.openNext(sd.vwd(), O_READ)) {
                                ^
In file included from /Users/alfredolivas/Documents/Arduino/libraries/SdFat/src/FatLib/FatLib.h:27:0,
                 from /Users/alfredolivas/Documents/Arduino/libraries/SdFat/src/SdFat.h:34,
                 from /Volumes/EXTERNAL HD/Arduino/Sketchbook/Teensy32x32MatrixSlideshow-main/Slideshow/Slideshow.ino:3:
/Users/alfredolivas/Documents/Arduino/libraries/SdFat/src/FatLib/FatVolume.h:336:12: note: declared private here
   FatFile* vwd() {return &m_vwd;}
            ^~~
Slideshow:95:20: error: 'FatFile* FatVolume::vwd()' is private within this context
       pos = sd.vwd()->curPosition();
                    ^
In file included from /Users/alfredolivas/Documents/Arduino/libraries/SdFat/src/FatLib/FatLib.h:27:0,
                 from /Users/alfredolivas/Documents/Arduino/libraries/SdFat/src/SdFat.h:34,
                 from /Volumes/EXTERNAL HD/Arduino/Sketchbook/Teensy32x32MatrixSlideshow-main/Slideshow/Slideshow.ino:3:
/Users/alfredolivas/Documents/Arduino/libraries/SdFat/src/FatLib/FatVolume.h:336:12: note: declared private here
   FatFile* vwd() {return &m_vwd;}
            ^~~
Slideshow:97:12: error: 'class SdFile' has no member named 'getFilename'; did you mean 'getName'?
       file.getFilename(name);
            ^~~~~~~~~~~
            getName
/Volumes/EXTERNAL HD/Arduino/Sketchbook/Teensy32x32MatrixSlideshow-main/Slideshow/Slideshow.ino: In function 'uint32_t bmpDraw(char*, uint8_t, uint8_t)':
Slideshow:200:12: error: 'matrix' was not declared in this scope
   if((x >= matrix.getScreenWidth()) || (y >= matrix.getScreenHeight())) return 0;
            ^~~~~~
/Volumes/EXTERNAL HD/Arduino/Sketchbook/Teensy32x32MatrixSlideshow-main/Slideshow/Slideshow.ino:200:12: note: suggested alternative: 'atoi'
   if((x >= matrix.getScreenWidth()) || (y >= matrix.getScreenHeight())) return 0;
            ^~~~~~
            atoi
Slideshow:249:23: error: 'matrix' was not declared in this scope
         if((x+w-1) >= matrix.getScreenWidth())  w = matrix.getScreenWidth()  - x;
                       ^~~~~~
/Volumes/EXTERNAL HD/Arduino/Sketchbook/Teensy32x32MatrixSlideshow-main/Slideshow/Slideshow.ino:249:23: note: suggested alternative: 'atoi'
         if((x+w-1) >= matrix.getScreenWidth())  w = matrix.getScreenWidth()  - x;
                       ^~~~~~
                       atoi
Slideshow:250:23: error: 'matrix' was not declared in this scope
         if((y+h-1) >= matrix.getScreenHeight()) h = matrix.getScreenWidth() - y;
                       ^~~~~~
/Volumes/EXTERNAL HD/Arduino/Sketchbook/Teensy32x32MatrixSlideshow-main/Slideshow/Slideshow.ino:250:23: note: suggested alternative: 'atoi'
         if((y+h-1) >= matrix.getScreenHeight()) h = matrix.getScreenWidth() - y;
                       ^~~~~~
                       atoi
Slideshow:279:13: error: 'matrix' was not declared in this scope
             matrix.drawPixel(x+col, y+row, color);
             ^~~~~~
/Volumes/EXTERNAL HD/Arduino/Sketchbook/Teensy32x32MatrixSlideshow-main/Slideshow/Slideshow.ino:279:13: note: suggested alternative: 'atoi'
             matrix.drawPixel(x+col, y+row, color);
             ^~~~~~
             atoi
Slideshow:283:9: error: 'matrix' was not declared in this scope
         matrix.swapBuffers(true);
         ^~~~~~
/Volumes/EXTERNAL HD/Arduino/Sketchbook/Teensy32x32MatrixSlideshow-main/Slideshow/Slideshow.ino:283:9: note: suggested alternative: 'atoi'
         matrix.swapBuffers(true);
         ^~~~~~
         atoi
Multiple libraries were found for "SdFat.h"
 Used: /Users/alfredolivas/Documents/Arduino/libraries/SdFat
 Not used: /Users/alfredolivas/Documents/Arduino/libraries/SdFat_-_Adafruit_Fork
exit status 1
expected constructor, destructor, or type conversion before '(' token


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.