The error you are getting is a linking error not a compilation error.
The linker tells you that it cannot find definition of Class1::var1
You just declared the vector member but did not define it.
Add:
std::vector<bool> Class1::var1;
to only one of your cpp files.
Good Read:
What is the difference between a definition and a declaration?