Hi,
I have created a project in which I have done all the declarations in GV.h. And the definition of the variable in their respective .c files. For float, int, etc variable, There is no problem. But For an array, it's giving the "error #20: identifier is undefined".
The array "extern uint16_t BB_Port2_RX[10]" is declared in GV.h. And it's been initialized in vbus1.c. All the functions in vbus1.c are good. But when I used any BB_Port2_RX[x] in any other .c file, I am getting the error.
similarly, I have a structure" struct PORT" declaration In GH.h. But I was getting variable redefinition error in multiple .c files. But When I wrote their definition in main.c file, errors are gone. I wanna understand what is the problem? I see that many people are getting this issue.
Regard
Vishal