An error is prompt while compiling..
"error LNK2005: "class Controller input" (?input@@3VController@@A) already defined in Controller.obj"
I am trying to call the input from class Controller in the function of class Control. Does my understanding for the programming was wrong?Code:// Class Control.cpp // void Control::Controlling(void) { inputs = 0; Controller input; } // Controller.cpp // #define Controller class Controller { public: Controller(void); ~Controller(void); }input;