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