View previous topic :: View next topic |
Author |
Message |
Rob_975
Joined: 14 Aug 2012 Posts: 16
|
Strange "undefined identifier" |
Posted: Mon Mar 18, 2013 3:32 pm |
|
|
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.
|
|
|
Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
|
|
Posted: Mon Mar 18, 2013 3:44 pm |
|
|
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
|
|
Posted: Mon Mar 18, 2013 4:10 pm |
|
|
Comment.
rtc_get_date, requires the addresses of the variables, not the variables themselves.
Best Wishes |
|
|
Rob_975
Joined: 14 Aug 2012 Posts: 16
|
|
Posted: Wed Mar 20, 2013 4:45 am |
|
|
OK guys, now it's working.
Thank you! |
|
|
|