Global variables can be used anywhere within the file in which they are defined. If you want to reference them within other files then you have to tell those files of the variable's existance by declaring them as extern in the file you want to use them in.
extern int syncErrors;