I have many different 3 axis sensors I am writing test code for. In the C files for each of them, I have the same char string defined:
char axis[3][8] = {\"X\",
Put this in your header file
extern char axis[3][8];
and keep this in a C file:
char axis[3][8] = {"X", "Y", "Z"};