im abit fatigue from programming all day so forgive me if i keep this short
anyway, i have a problem. the problem is
in my .cpp file, i need to declare the variables in order for it to run with .hpp, otherwise it just says the variables is not declared. then in my main.cpp, it also needs me to declare the same variables in order for it to run, but if i declare it both, then the compiler gives me a multiple declaration error. how do i solve this?
So the problem is that actually after compilation you have two objects files declaring the same variables?
Well then declare them only in one cpp file and in the other either mark them as extern (the lazy way) or pass them directly into the functions that need them when you call those functions (the better way).