View previous topic :: View next topic |
Author |
Message |
impedevted
Joined: 15 Mar 2013 Posts: 1 Location: Bangkok Thailand
|
My error have still |
Posted: Fri Mar 15, 2013 11:19 pm |
|
|
#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: 19504
|
|
Posted: Sat Mar 16, 2013 2:41 am |
|
|
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
|
|
Posted: Sat Mar 16, 2013 6:57 am |
|
|
Hi,
In addition, this line
seems a bit suspect?
John |
|
|
|