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

A #DEVICE required before this line

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



Joined: 15 Mar 2013
Posts: 1
Location: Bangkok Thailand

View user's profile Send private message AIM Address

My error have still
PostPosted: Fri Mar 15, 2013 11:19 pm     Reply with quote

#include <16F877A.h>
#FUSES NOWDT, HS, PUT, NOPROTECT, NODEBUG, BROWNOUT, NOLVP, NOCPD, NOWRT
#use delay (clock = 8000000)
#device ADC=10

#include <MDCmain.h>
#include <LCD16x4.h>
#include <GPIO.h>
#include <Timer.h>
#include <eeprom.>
#include <ADC10.h>

#include <LCD16x4.c>
#include <GPIO.c>
#include <Timer.c>
#include <eeprom.c>
#include <ADC10.c>


Please help ,
*** Error 128 "Timer.c" Line 17(1,1): A #DEVICE required before this line
Ttelmah



Joined: 11 Mar 2010
Posts: 19327

View user's profile Send private message

PostPosted: Sat Mar 16, 2013 2:41 am     Reply with quote

Are you possibly compiling through MPLAB, rather than directly?.
If so, the include files must not be in the list of files to compile.
Do a search here.

Best Wishes
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Sat Mar 16, 2013 6:57 am     Reply with quote

Hi,

In addition, this line

Code:

#include <eeprom.>


seems a bit suspect?

John
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