In a header file write it with extern keyword. And in one of the *.c file declare it without extern keyword.