simple solution, put a extern infront of your variables in the header...
And then get undefined references linker errors
. Turning these definitions into declarations is only half the work, adding their definitions to the implementation the other half. A faster, better and more correct approach would be to move these variables into the class as members.
But anyway, these are very basic c/c++ errors because of lack of language knowledge and way off topic for this forum, better teach yourself c++ programming and head to a programming beginners forum.