Actually I've been searching my error and i found tons of solutions but they couldn't fix my problem and probably this is easy but i can't handle...
/* header */
class EmployeeRegister
{
private:
EmpReg *Emp;
public:
EmployeeRegister(int,int);
};
/* cpp file*/
EmployeeRegister::EmployeeRegister(int a,int b)
{
cout << "Result : " << a+b << endl;
}
/* in main file*/
EmployeeRegister Sub(1,1);
and when i do this or something like this i get :
main.obj:-1: error: LNK2001: unresolved external symbol "public:
__thiscall EmployeeRegister::EmployeeRegister(int,int)"
(??0EmployeeRegister@@QAE@HH@Z)
Actually I'm sure this is easy but what am I missing ?
EDIT : It's fixed , linker couldn't find my .cpp file.