2013-04-18 09:41 AM
Hello
I have a struct in my code ;typedef struct
{ unsigned char volume; unsigned char l_bat; unsigned char h_bat; unsigned char rtc; unsigned char pace; unsigned char child; unsigned char date; unsigned char day; unsigned char month; unsigned char year; unsigned char hour; unsigned char min; unsigned char motion; signed char gmt; unsigned int delay[10]; unsigned int shock[3]; char language[3];}settings;
but the comp?ler give an error for one member ..\src\main.c(452): error: &sharp136: struct ''<unnamed>'' has no field ''date''.. I can use the other members but not date!!! what is wrong here ... ? Thank you #unproven-fix2013-04-18 10:26 AM
what is wrong here ... ?
Something else. You probably have something else defined as date, perhaps another typedef.2013-04-18 11:56 AM
2013-04-18 01:22 PM
2013-04-18 11:15 PM
Trouble is, if you don't know what was causing the problem originally, and you don't know why it's now gone away - how can you be sure that it's really fixed?
You may still have a latent bug which just happens not to manifest - yet...2013-04-19 02:37 AM
2013-04-19 02:49 AM
Have you tried to make your struct non-anonymous ?
Just in case the compiler has some problems with that.