declarations in libraries

michinyon:
Well, you need to be careful not to define things twice.

That's why most header files have that #ifndef stuff at the beginning, to prevent them being included twice.

Your "variables" mac and server are being defined twice. This could mean one of two things:
(a) the same variable is being included twice, or
(b) two different variables are being defined, using the same name.

To distinguish these cases, try re-naming your instances of these variables to something else. Like mac_xxx and server_xxx.
And then see what happens.

I tried to rename the variables. The same errors are still occurring.

I did lose the () to create the class. No changes in the errors there either.