For some reason, I'm having issues with C++.I don't get at all what you are saying... in easy terms I use:
Defining something in the .h file works perfectly. Defining it in the cpp file stops working.
myclass.hpp // declaration of my class
myclass.cpp // my class body code with #include "myclass.hpp"
main.cpp // my main programs with #include "myclass.hpp"
I can use myclass in main.cpp fine doing this way.