inc13.obj : error LNK2019: unresolved external symbol "public: __thiscall CDistance::CDistance(void)" (??0CDistance@@QAE@XZ) referenced in function _main
Also if you want to overload the constructor, you must define both. You have only defined CDistance::CDistance(int f, int i) but declared and have not defined CDistance::CDistance();