This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

pragma directive causes build error: Symbol redefined

Other Parts Discussed in Thread: MSP430FR5959

Hi out there...

I'm trying to move an array of structs to FRAM using the #pragma PERSISTENT (xyz) directive inside an header file and not in Main.c

At compile time the compiler claims about Error: symbol "xyz" redefined: first defined in "./xxx.obj"; redefined in "./main.obj"

If i define this symbol in Main.c compilation works, but the symbol logically is not available to other moduls.

Does anybody know, how to get rid of this?

THX Amir

CCS  Version: 6.1.3.00034

MSP430FR5959