_delay_ms function declared implicit int
Hi guys,
I have this question on why Hi-tech C is giving out the error while Mikro C is not. the code is very simple. I'm familiar with assembly language but just started out with c. I'm trying to see which is easier to use between the two.
void main() {
PORTC = 0;
TRISC = 0;
while(1) {
PORTC = ~PORTC;
Delay_ms(1000);
}
} //~!
THe errors in Hitec c are:
Severity Description Resource
Id
2 (499) undefined symbol: _Delay_ms
1 (361) function declared implicit int line 25
20
1 (337) line does not have a newline on the end line 26
1 (176) missing newline line 27
is it syntax error? and why is it looking for missing new line when its already the end of the program? Any help is appreciated.