hai guys,
i have another error, when i am compiling i am getting the following
error....
Gsm.o(.flashA+0x6): In function `UartTaskComplete':
/cygdrive/c/Documents and Settings/Desktop/latestOBDISODriver/Gsm.c:38:
multiple definition of `OBDDY'
Main.o(.flashA+0x6):/cygdrive/c/Documents and Settings/Desktop/latestOBD
ISODriver/Main.c:38: first defined here
Gsm.o(.flashA+0x5a): In function `GsmTimeout':
/cygdrive/c/Documents and Settings/Desktop/latestOBDISODriver/Gsm.c:77:
multiple definition of `IMEINumber'
Main.o(.flashA+0x5a):/cygdrive/c/Documents and Settings/Desktop/latestOB
DISODriver/Main.c:110: first defined here
Gsm.o(.flashB+0x0): In function `UartTaskComplete':
/cygdrive/c/Documents and Settings/Desktop/latestOBDISODriver/Gsm.c:37:
multiple definition of `UserList'
msp430-ld: region data is full (JL2 section .flashA)
make: *** [JL2] Error 1
these varibles, like UserList,IMEINumber etc.. are flash variables and i have
declared it as follows in the header file:
const __attribute__ ((section (".flashA"))) int SystemPrefix;
const __attribute__ ((section (".flashA"))) struct OBDDynamicVariables OBDDY[2];
const __attribute__ ((section (".flashA"))) struct OBDStaticVariables OBDST;
const __attribute__ ((section (".flashA"))) unsigned int IMEINumber[8];
const __attribute__ ((section (".flashA"))) unsigned int MyPhoneNumber[8];
const __attribute__ ((section (".flashA"))) unsigned int UserPhoneNumber[8];
const __attribute__ ((section (".flashA"))) int SystemStatus ;
i thought it might be becoz of multiple inclusion of header files,and i added
#ifndef <filename>
#define<filename>
........#endif
in all the header file, but still i am having this probelm, i refrred to the
compile folder(mspgcc)in my drive and had a look in their include files , and
did the same thing...of how they have included to avoid this ..still i am
helpless!! could any one suggest me ,to overcome this error,
thank you
vijay
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com