if you declare a variable in a header file then it would be hard for you to include that header file in other file. the problem is compiler would try to create that variable.
What you can do is create a file with the variables and in the header file declare those variable with extern key word
as example:
int a, b, c;
extern int a, b, c;
if you define a variable with extern key word compiler wont create object but will look for that object in other libs
example:
so_called_variable_file.cpp
int a, b, c;
so_called-header_file.h
extern int a, b, c;
the_other_files.cpp
#include "so_called-header_file.h"