error when i use GLCDexample !!

Arduino: 1.6.3 (Windows 7), Board: "Arduino Uno"

In file included from C:\Users\303\Documents\Arduino\libraries\ks0108/ks0108.h:34:0,

from GLCDexample.pde:11:

C:\Users\303\Documents\Arduino\libraries\ks0108/Arial14.h:48:27: error: variable 'Arial_14' must be const in order to be put into read-only section by means of 'attribute((progmem))'

static uint8_t Arial_14[] PROGMEM = {

^

C:\Users\303\Documents\Arduino\libraries\ks0108/SystemFont5x7.h:41:28: error: variable 'System5x7' must be const in order to be put into read-only section by means of 'attribute((progmem))'

static uint8_t System5x7[] PROGMEM = {

^

C:\Users\303\Documents\Arduino\libraries\ks0108/ArduinoIcon.h:11:30: error: variable 'ArduinoIcon' must be const in order to be put into read-only section by means of 'attribute((progmem))'

static uint8_t ArduinoIcon[] PROGMEM = {

^

In file included from GLCDexample.pde:16:0:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:117:14: error: conflicting declaration 'typedef bool boolean'

typedef bool boolean;

^

In file included from GLCDexample.pde:11:0:

C:\Users\303\Documents\Arduino\libraries\ks0108/ks0108.h:32:17: error: 'boolean' has a previous declaration as 'typedef uint8_t boolean'

typedef uint8_t boolean;

^

Error compiling.

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

Read the notice about the glcd library on the project page: https://code.google.com/p/glcd-arduino/

And my comment in this this thread: http://forum.arduino.cc/index.php?topic=56705.msg407124#msg407124

--- bill

n0a0i0f,
I just noticed that you were using the ks0108 library. That is old (5+ years) and hasn’t worked for quite some time.
It went through 2 revisions and then at the 3rd revision it was renamed “glcd” about 5 years ago. From the links above you will see that while glcdv3 was a much newer and improved/updated library over the ks0108 library, it hasn’t been maintained in several years and no longer works with the more recent IDEs.

See the above links for alternative libraries.
I am the author of openGLCD and one of the co-authors of glcdv3

— bill

mr bperrybap ..

really i want to thanks you for you answers ..

hope i can only write my name on this lcd T_T https://www.sparkfun.com/products/710

thanks mr bperrybap again ^_^

You need to add const to the array PROGMEMS

static const uint8_t ArduinoIcon[] PROGMEM = {