You must have inside your class:
class CommandManager { public: void sendText(std::string command); static bool started;
and outside of your class, in the *.cc
file (not in the header *.hh
file), type definition
bool CommandManager::started;
By the way, I believe that you are better off making it private
.
source share