I have few arrays defined in a c file and declared as extern in its header. the header is being included in several other files. It complies in MSVC however the armcc is throwing error. How do i resolve this issue?
/* example.c file */
const tUint32 BanD_arr[4]={....,....,....,};
void BandBits(){
...y = BanD_arr[x];...
}
/* example.h file */
extern const tUint32 BanD_arr[4];
Error form ARMCC 4.5.2 Error: L6769E: Relocation #REL:0 in example.o(i.BandBits) with respect to BanD_arr. No GOTSLOTexists for symbol.