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

CCS error in 1820_2.c file, help!

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Giao Luu



Joined: 21 Jul 2010
Posts: 1

View user's profile Send private message

CCS error in 1820_2.c file, help!
PostPosted: Mon Mar 26, 2012 10:37 pm     Reply with quote

I used 1820_2.c sample file in 16F877 routines folder of CCS, compiled it but error occur like this:
"Error 51: A numeric expression must appear here"
Code:

d[n] = get_flash_eeprom_byte(adr);

Anybody can help me please? Thanks so much.
Ttelmah



Joined: 11 Mar 2010
Posts: 19510

View user's profile Send private message

PostPosted: Tue Mar 27, 2012 4:25 am     Reply with quote

The error won't be here.
It'll be somewhere earlier in the file. Either a syntax error (just a missing ';' for example), or that one of the definitions used for one of the variables, doesn't match what the line expects.

Best Wishes
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