Hello All,

I am working on a problem, where i have to put a check on an extern variable(flag) and on basis of that check my program could work. The scenario is as following. I have declared an extern variable in ABC.h as "extern uint8 test " and in file ABC.c i am intiallizing it with "extern uint8 test = 1" into a function. In my main file i want to add a check that "if(extern variable int == 1) then perform a function xyz", as my function xyz is dependent on occurence of function in ABC.c.

But however i am getting an error that two instances of a variable are not allowed or variable is defined two times. Kindly guide me, what other procedure could be adopted, where a check could be implemented to check the gloabl variable defined in another file.

Best Regards
Rebelsoul