it wont tell me what is causing the error and it mentions a virtual double member the only virtual member in the casual class is the destructor why am I getting this error and how do I get rid of it
This error means that inside the class definition for staffMember (in staffmember.h maybe?) you have declared a function called wage that returns a double and takes no arguments. However the linker cannot find a body for that function. (should probably be in staffmember.cpp). The reason why it references 'casual' is that you must have called that function from somewhere inside that source file.
casual is a class that derived from the base class staffMember the wage function was virtual within staff member I changed that and made it nonvirtual doing so simply replaced the LNK2001 error with a LNK2019 error
Error 2 error LNK2019: unresolved external symbol "public: double __thiscall staffMember::wage(void)" (?wage@staffMember@@QAENXZ) referenced in function _main\main.obj