How can I create global variables that are shared in C? If I put it in a header file, then the linker complains that the variables are already defined. Is the only way to de
In the header file write it with extern. And at the global scope of one of the c files declare it without extern.
extern