Page 1 of 1

Glcd undeclared identifier when compiling

Posted: 17 Jun 2016 15:24
by overdrive915
Hi to all I am trying to learn 8051 programing for glcd.
I have a small screen with three names on it and every time I try to compile I get Undeclared Identifier SPI_GLCD_WRITE_TEXT_ADV and a few more of almost the same on my screen.
Am I doing something wrong even if I try to compile a demo I have the same problem.
Please can you help (confused)

void Calibrate() {

Glcd_Dot(0,63,_clDraw); // Draw bottom left dot
Glcd_Write_Text_Adv("TOUCH BOTTOM LEFT", 13, 50);
TP_Calibrate_Bottom_Left(); // Calibration of bottom left corner
Delay_ms(500);

Glcd_Dot(0,63,_clClear); // Clear bottom left dot
Glcd_Set_Font_Adv(Glcd_defaultFont, _clClear, _GLCD_HORIZONTAL);
Glcd_Write_Text_Adv("TOUCH BOTTOM LEFT", 13, 50);
Glcd_Dot(127,0,_clDraw); // Draw upper right dot
Glcd_Set_Font_Adv(Glcd_defaultFont, _clDraw, _GLCD_HORIZONTAL);
Glcd_Write_Text_Adv("TOUCH UPPER RIGHT", 20, 13);
TP_Calibrate_Upper_Right(); // Calibration of upper right corner

Delay_ms(500);


0 122 Compilation Started small_objects.h
24 123 Compiled Successfully small_main.c
0 122 Compilation Started small_objects.h
2 123 Compiled Successfully small_resources.h
0 122 Compilation Started small_objects.h

59 324 Undeclared identifier 'Glcd_Write_Text_Adv' in expression small_driver.c
60 324 Undeclared identifier 'TP_Calibrate_Bottom_Left' in expression small_driver.c
64 324 Undeclared identifier 'Glcd_Set_Font_Adv' in expression small_driver.c
65 324 Undeclared identifier 'Glcd_Write_Text_Adv' in expression small_driver.c
67 324 Undeclared identifier 'Glcd_Set_Font_Adv' in expression small_driver.c
68 324 Undeclared identifier 'Glcd_Write_Text_Adv' in expression small_driver.c
69 324 Undeclared identifier 'TP_Calibrate_Upper_Right' in expression small_driver.c
171 324 Undeclared identifier 'Glcd_Set_Font_Adv' in expression small_driver.c
172 324 Undeclared identifier 'Glcd_Write_Const_Text_Adv' in expression small_driver.c
174 312 Internal error '' small_driver.c
0 122 Compilation Started small_resources.c
400 123 Compiled Successfully small_resources.c
0 102 Finished (with errors): 17 Jun 2016, 16:17:16 small.mcp51

Re: Glcd undeclared identifier when compiling

Posted: 20 Jun 2016 13:21
by nadir.celebic
Hello,

Try to turn on the Glcd library and see if this works.

Regards,
Nadir

Re: Glcd undeclared identifier when compiling

Posted: 20 Jun 2016 15:19
by overdrive915
The Glcd library has been turned on when I go into the library the Glcd_Write_Text_Adv does not exist only Glcd_Write_Text exists.

Thanks for the reply.

Re: Glcd undeclared identifier when compiling

Posted: 21 Jun 2016 16:39
by nadir.celebic
Hi,

In compiler for 8051 this function Glcd_Write_Text_Adv doesn't exist.
Function Glcd_Write_Text_Adv exist in mikroC PRO compiler for PIC.

Instead of Glcd_Write_Text_Adv,you can try Glcd_Write_Text .

Regards,
Nadir