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

Strange "undefined identifier"

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



Joined: 14 Aug 2012
Posts: 16

View user's profile Send private message

Strange "undefined identifier"
PostPosted: Mon Mar 18, 2013 3:32 pm     Reply with quote

Hello,

I have a problem here with a undefined identifier in my main.c
here's part of the code:



the strange thing is that is only the first element to generate the error.
If I write year at the first position, the variable "year" will be considered as undefined identifier but is not.


Sad Sad Sad Sad
Mike Walne



Joined: 19 Feb 2004
Posts: 1785
Location: Boston Spa UK

View user's profile Send private message

PostPosted: Mon Mar 18, 2013 3:44 pm     Reply with quote

Quite often the cause is in a previous line.

So:-

Post the SHORTEST possible complete, compilable code which shows the problem.
Then we can test it.

Mike
Ttelmah



Joined: 11 Mar 2010
Posts: 19540

View user's profile Send private message

PostPosted: Mon Mar 18, 2013 4:10 pm     Reply with quote

Comment.
rtc_get_date, requires the addresses of the variables, not the variables themselves.

Best Wishes
Rob_975



Joined: 14 Aug 2012
Posts: 16

View user's profile Send private message

PostPosted: Wed Mar 20, 2013 4:45 am     Reply with quote

OK guys, now it's working.

Thank you!
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