Launching the display sg12864j4 digitrun

Hello my friends
with display sg12864j4 driver ks0108 and arduino mega2560
error during the Orduino upload time.

#include <ks0108.h> // library header
void setup(){
GLCD.Init(NON_INVERTED); // initialise the library
GLCD.ClearScreen();
delay(3000);
GLCD.ClearScreen();
}
void loop(){ // run over and over again

GLCD.DrawCircle(32,31,30,BLACK); // draw circle centered in the left side of screen
GLCD.FillRect(92,40,16,16, WHITE); // clear previous spinner position
GLCD.CursorTo(5,5); // locate curser for printing text

}

In file included from C:\Users\AMIR\AppData\Local\Temp\arduino_modified_sketch_315218\sketch_oct13h.ino:2:0:

C:\Users\AMIR\Documents\Arduino\libraries\ks0108/ks0108.h:32:17: error: conflicting declaration 'typedef uint8_t boolean'

typedef uint8_t boolean;

^~~~~~~

In file included from sketch\sketch_oct13h.ino.cpp:1:0:

C:\Users\AMIR\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.1\cores\arduino/Arduino.h:125:14: note: previous declaration as 'typedef bool boolean'

typedef bool boolean;

^~~~~~~

Multiple libraries were found for "ks0108.h"
Used: C:\Users\AMIR\Documents\Arduino\libraries\ks0108
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

hi

i think its simple !

you cannot use same name/variable and defined with different data type !

typedef uint8_t boolean;
typedef bool boolean;

you define boolean first with uint8_t and second with bool ---> error

================

try this:

typedef uint8_t boolean_a;
typedef bool boolean_b;

but you must apply this change to all of your booleans !!!

Hello
Thanks for your guidance
Problem not resolved