Source code in C does not compile, please check it

Status
Not open for further replies.

thvigan

Newbie level 4
Joined
Jan 9, 2006
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,329
problem with c

i have source code written in c but i cannot compile, im not sure what is wrong with source code. can some one check the code for me. i have attached the code
 

problem with c

can you post the compilation errors?
and for which microcontroller are you writing?
 

Re: problem with c

im writing for pic16f72
 

Re: problem with c

do{
}while (TRUE);


try changing the loop
 

problem with c

using the do{}while() or while(){} doesnt make much of a difference. Try use a numerical value insted of true.. like try to pass positive value within the while( condition) so as to execute the loop.

with regards,
arun
 

Re: problem with c

im still getting some errors i have attached the errors.
 

Re: problem with c

Hi,
Problem is in header file. You must include header file for 16F72. For example if you use Hi-tech it's pic16f7x.h.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…