serial read output on lcd

I'm trying to recycle parts of the adafruit glcd demo by replacing everything downstream of the splash screen with a serial read, but im getting errors.

I'm new to programming so i have no clue what im doing here.

The code:

#include "ST7565.h"

int ledPin = 10; // LED connected to digital pin 13

// the LCD backlight is connected up to a pin so you can turn it on & off
#define BACKLIGHT_LED 10

// pin 9 - Serial data out (SID)
// pin 8 - Serial clock out (SCLK)
// pin 7 - Data/Command select (RS or A0)
// pin 6 - LCD reset (RST)
// pin 5 - LCD chip select (CS)
ST7565 glcd(9, 8, 7, 6, 5);

#define LOGO16_GLCD_HEIGHT 16
#define LOGO16_GLCD_WIDTH 16

// The setup() method runs once, when the sketch starts
void setup() {

Serial.begin(9600);

// turn on backlight
pinMode(BACKLIGHT_LED, OUTPUT);
digitalWrite(BACKLIGHT_LED, HIGH);

// initialize and set the contrast to 0x18
glcd.begin(0x10);

glcd.display(); // show splashscreen
delay(2000);
glcd.clear();
}

void loop()
{
char c;

// when characters arrive over the serial port...
if (Serial.available())
{
// read character from serial library buffer
c = Serial.read();

// display character on glcd
GLCD.write(c); // use Print class for output

// could also use gText character output routine
// GLCD.PutChar(c);
}
};

so i have no clue what im doing here.

Without seeing the errors, neither do we.

      GLCD.write(c); // use Print class for output

This is an interesting comment. The Print class has both print() and write() methods. The write() methods are for binary data, which is going to be hard for you to visualize on the LCD.

st7565lcd.ino: In function 'void loop()':
st7565lcd:47: error: 'GLCD' was not declared in this scope

Is what i get.

st7565lcd.ino: In function 'void loop()':
st7565lcd:47: error: 'GLCD' was not declared in this scope

So, wHeRe dO yoU ThiNK iT wAS? Case MATTERS!

Then the error changes to:

st7565lcd.ino: In function 'void loop()':
st7565lcd:52: error: 'class ST7565' has no member named 'write'

I added write to the ST7565 class file and now get this:

st7565lcd.cpp.o: In function loop': C:\Program Files (x86)\Arduino/st7565lcd.ino:52: undefined reference to ST7565::write()'

I added write to the ST7565 class file

The header file or the source file? And why? Do you really think you are going to show binary data on the LCD?