View previous topic :: View next topic |
Author |
Message |
veed_bits
Joined: 15 Jun 2011 Posts: 1
|
Error using flex_lcd |
Posted: Wed Jun 15, 2011 12:40 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah
Joined: 11 Mar 2010 Posts: 19359
|
|
Posted: Wed Jun 15, 2011 1:53 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
|
|
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
|