I am getting this error - not declared in this scope

Hello,
Thats it... I am done. Two days of hard work, and nothing... Look to my code. and please tell me why its not taking libraries? Or is there other problem that makes my life harder? Please help me. This code is about to control led matrix.

Thanks for your wasted time.

8x8 matrix.zip (4.83 KB)

What's the error you're getting? You're asking for help with a technical problem - you should always include any and all error messages.

Where is graphics.h? You realize you're #including graphics.h, but your archive only has a graphics.cpp, right?

I am getting this error..

Graphics.cpp: In function 'void draw(const byte*, int, int)':
Graphics.cpp:49:40: error: variable-sized object 'Pixel' may not be initialized
         int Pixel[ni][nj]=(tstr[j]=='1');
                                        ^
Graphics.cpp: In function 'void drawInvert(const byte*, int, int)':
Graphics.cpp:71:40: error: variable-sized object 'Pixel' may not be initialized
         int Pixel[ni][nj]=(tstr[j]=='0');
                                        ^
Graphics.cpp: In function 'void marqueeInvert(String, int)':
Graphics.cpp:110:17: error: 'clearScreen' was not declared in this scope
     clearScreen();
                 ^
Graphics.cpp:118:17: error: 'shiftPixels' was not declared in this scope
     shiftPixels();
                 ^
Graphics.cpp: In function 'void playAnimation(int, byte (*)[8], int)':
Graphics.cpp:132:19: error: 'shiftPixels' was not declared in this scope
       shiftPixels();
                   ^
Graphics.cpp: In function 'void playAnimationInvert(int, const byte (*)[8], int)':
Graphics.cpp:146:19: error: 'shiftPixels' was not declared in this scope
       shiftPixels();
                   ^
Graphics.cpp: In function 'void marqueeAnimation(const byte (*)[8], int)':
Graphics.cpp:160:17: error: 'clearScreen' was not declared in this scope
     clearScreen();
                 ^
Graphics.cpp:168:17: error: 'shiftPixels' was not declared in this scope
     shiftPixels();
                 ^
Graphics.cpp: In function 'void playAnimationFlash(int, const byte (*)[8], int, int, int, int, int)':
Graphics.cpp:178:19: error: 'Level' was not declared in this scope
     int TempLevel=Level;
                   ^
Graphics.cpp:180:15: error: 'setLevel' was not declared in this scope
     setLevel(0);
               ^
Graphics.cpp:185:19: error: 'shiftPixels' was not declared in this scope
       shiftPixels();
                   ^
Graphics.cpp: In function 'void playAnimationFlashInvert(int, const byte (*)[8], int, int, int, int, int)':
Graphics.cpp:207:19: error: 'Level' was not declared in this scope
     int TempLevel=Level;
                   ^
Graphics.cpp:209:15: error: 'setLevel' was not declared in this scope
     setLevel(0);
               ^
Graphics.cpp:214:19: error: 'shiftPixels' was not declared in this scope
       shiftPixels();
                   ^
Graphics.cpp: In function 'void flashText(String, int, int, int, int, int)':
Graphics.cpp:234:17: error: 'Level' was not declared in this scope
   int TempLevel=Level;
                 ^
Graphics.cpp:235:13: error: 'setLevel' was not declared in this scope
   setLevel(0);
             ^
Graphics.cpp:239:17: error: 'shiftPixels' was not declared in this scope
     shiftPixels();
                 ^
Error compiling.

So how to create .h library? I though that cpp and h is the same one. sorry for my dumbness, but look to my username an you will find out.

I'm away from an Arduino development system atm so can't test, but you entirely missed what I was saying about Graphics.h vs Graphics.cpp.

The archive you posted contains a Graphics.cpp.

The archive you posted does NOT contain a Graphics.h.

The sketch you posted does not #include "Graphics.cpp" (which exists), it includes "Graphics.h" (which doesn't).

Try changing the sketch to include "Graphics.cpp" instead of "Graphics.h"

You are trying to create a new array called Pixel, with undefined, but not constant, sizes. I suspect that you need to lose the int in front of Pixel.