CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Extrange Error HELLLLP!!!

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
MoofCba



Joined: 08 Mar 2004
Posts: 4

View user's profile Send private message

Extrange Error HELLLLP!!!
PostPosted: Mon Mar 08, 2004 2:40 pm     Reply with quote

whats wrong with this code?
#include <16F877.h>
#device adc=10
#use delay(clock=10000000)
#fuses NOWDT,HS, PUT, NOPROTECT, BROWNOUT
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7)
#bit Conversion= ADCON0.2



int dato[2],puntero;
int16 AD[8]={0,1,2,3,4,5,6,7};





#int_AD
AD_isr()
{
...
}
#int_TBE
TBE_isr()
{
...
}
#int_RDA
RDA_isr()
{
...
}
void main()
{
..
}


Cos when i compile with CCS 3.184 i have this error:

UNDEFINED IDENTIFIER ?

a the compiler marks the line whith the int dato[2],puntero;
exactly the in of the int!!!!
why is this, this is my first proyect and i can make it work.
mvaraujo



Joined: 20 Feb 2004
Posts: 59
Location: Brazil

View user's profile Send private message

PostPosted: Mon Mar 08, 2004 2:50 pm     Reply with quote

It seams to have a comma in the definition, right?

Code:
int dato[2],puntero;


It shoudn't be there, use only:

Code:
int dato[2] puntero;
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Mar 08, 2004 3:00 pm     Reply with quote

Quote:
It seams to have a comma in the definition, right?
Code:
int dato[2],puntero;
It shoudn't be there, use only:
Code:
int dato[2] puntero;

Did you compile that code before you posted it ?

If he follows your recommendation, he will get this error.
*** Error 36 "C:\PICC\TEST\TEST.C" Line 19(13,20): Expecting a ; or ,

His problem is that he has not defined the ADCON0 symbol.
He needs to do that with a #byte statement.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group