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 support@ccsinfo.com

Error using flex_lcd

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



Joined: 15 Jun 2011
Posts: 1

View user's profile Send private message

Error using flex_lcd
PostPosted: Wed Jun 15, 2011 12:40 am     Reply with quote

Hi,
while using the codes mentioned on the main flex_lcd page, i encountered the following error, please help.

*** Error 128 "flex_lcd.c" Line 28(1,43): A #DEVICE required before this line

What can be done?
_________________
Thanks,
Vaibhav
Ttelmah



Joined: 11 Mar 2010
Posts: 19226

View user's profile Send private message

PostPosted: Wed Jun 15, 2011 1:53 am     Reply with quote

I wonder. Are you perhaps compiling under MPLAB?.

If so, you _must_ only include your main code, in the list of files to compile, _not_ the flex lcd file.
Files that are 'included' in the main file, _must not_ be added to the files to compile list in MPLAB. If you do add them, MPLAB will try to compile these _separately_, and will give the error you show. The error you are listing is the result of trying to compile the flex lcd driver _without_ a 'main' program file, containing the #device.

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