I just simply wanted to define a global label pointing to one line of code in a.c file and then the b.c file can recognize that label. Both the files are linked together. The problem is the b.c file couldn't recognize it since the compiler/linker thinks the label in a.c file is file specific.
I found a similar question and answer here: Use label in Assembly from C But I wanted to define a global label in C/C++ rather than in Assembly.
P.S., I am not using goto statement :)
goto
? That's really all it's designed for in C and C++, so labels aren't visible outside the function in which they're defined.