I've read through many forum posts here but am still unsure how to overcome this compiler error. It tells me that on line 14 of function main that it needs a primary-expression. However, I have the std::string right there!
You haven't defined a member function setEmpname. At the moment you've defined a non-member function. Qualify it as void Employee::setEmpname in Employee.cpp
And make sure that in setEmpname you actually set the member variable Empname.
Actually, it's a bit unclear whether your intention is to pass it as a function parameter from main, or interrogate the user for it in setEmpname(). Maybe you should decide that first.
Thanks for your help everyone. Especially that last bit about actually setting the member variable to Empname. I was getting some strange garbage output and spent a decent amount of time figuring it out since everything read well to me (in English not C++).