alarm clock ccsc coding

Status
Not open for further replies.

chythia

New Member
I had compile my alarm clock coding by using ccsc software...but everytime i compile sure have an error.(even though the example of the code) The error is : Line1(0,1):A #DEVICE required before this line..and i dun understand what the error about... anyone can help me about this error? izit i lefted out something that should be declare in the source code??
 
Have you tried adding a line to the start of your program along the lines of,

#device 16F84
or
#device=16f84

You would of course replace 16F84 with the actual device you are using.

Mike.
 
one more question here..while i am compiling the alarmclock.c file, how come the error state that: the file can not be opened?? izit canot open 2 ccsc window at the same time??
 
one more question here..while i am compiling the alarmclock.c file, how come the error state that: the file can not be opened?? izit canot open 2 ccsc window at the same time??

Probably the compiler can't find your file alarmclock.c

have you included the file like this?
Code:
#include <alarmclock.c>
If the file alarmclock.c is in your project directory
then use:
Code:
#include "alarmclock.c"

If it is in another directory, then you must give the full path inside the quotes:
Code:
#include "C:\theDirectoryWhichFileIsIn\alarmclock.c"
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…