CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

LCD.C problem

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Kevin Benedict
Guest







LCD.C problem
PostPosted: Sat Jun 07, 2003 1:59 pm     Reply with quote

Usind LCD.C and getting error

Error[28] C:\PROJECTS\F84FANSW\LCD.C 139 : Expecting an identifier

Which is the first line of

void lcd_putc( char c) {
switch (c) {
case '\f' : lcd_send_byte(0,1);
delay_ms(2);
break;
case '\n' : lcd_gotoxy(1,2); break;
case '\b' : lcd_send_byte(0,0x10); break;
default : lcd_send_byte(1,c); break;
}
Any suggestions ?
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515087
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: LCD.C problem
PostPosted: Sat Jun 07, 2003 10:47 pm     Reply with quote

:=Usind LCD.C and getting error
:=
:=Error[28] C:\PROJECTS\F84FANSW\LCD.C 139 : Expecting an identifier
:=
:=Which is the first line of
:=
:=void lcd_putc( char c) {
------------------------------------------------------------

Can you tell us:

1. The name and version of your compiler.

2. The part number of the PIC you are using.

To try and duplicate your problem, I can compile the CCS
example, EX_LCDKB.C, which uses the LCD.C file. Do you
get that error when you compile that example file ?
I just need to verify that, before I test it.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515088
Kevin Benedict
Guest







Re: LCD.C problem
PostPosted: Sun Jun 08, 2003 8:02 pm     Reply with quote

Dumb mistake on my part, I was using some borrowed code and
C was define as the carry flag bit in another include file,
so the compiler did not like "lcd_putc( char c)"
I have corrected the #define statement.
Thanks for the help !

:=:=Usind LCD.C and getting error
:=:=
:=:=Error[28] C:\PROJECTS\F84FANSW\LCD.C 139 : Expecting an identifier
:=:=
:=:=Which is the first line of
:=:=
:=:=void lcd_putc( char c) {
:=------------------------------------------------------------
:=
:=Can you tell us:
:=
:=1. The name and version of your compiler.
:=
:=2. The part number of the PIC you are using.
:=
:=To try and duplicate your problem, I can compile the CCS
:=example, EX_LCDKB.C, which uses the LCD.C file. Do you
:=get that error when you compile that example file ?
:=I just need to verify that, before I test it.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515099
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group