Hi santhosh
is the header file (delay.h) is the one that come with hi tech pic c
if so there is no such a term called dealyS() (unless u modify)
if your use that header file
DelayUs(x) Delay specified number of microseconds
DelayMs(x) Delay specified number of milliseconds
are only available functions with that header
and where is your configuration word ?
__CONFIG( PWRTDIS & LVPDIS & WDTDIS &XT & UNPROTECT);
and there is no need to add "#delay.c " directive
and u have to copy delay.h to the working folder
the pre-processor directive and config word should like this
# include<pic.h>
# include"delay.h"
#define XTAL FREQ 4MHZ
__CONFIG( PWRTDIS & LVPDIS & WDTDIS &XT & UNPROTECT);
and one thing u have to specify your crystal frequency
above it is 4MHz
read the header file carefully you may find the solution