Hı guys.I have problem with a example which is in Big C ++.I don^t execute this example.When I uses virtual keyword,the program don^t execute.When i don't use virtual keywords, program execute wrongly.Travelclock class is derived from clock class.
LINK : C:\Users\ugur\Documents\Visual Studio 2010\Projects\polymorphism\Debug\polymorphism.exe not found or not built by the last incremental link; performing full link
1>clock3.obj : error LNK2019: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall Clock::get_location(void)const " (?get_location@Clock@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) referenced in function _main
1>clock3.obj : error LNK2019: unresolved external symbol "public: int __thiscall Clock::get_hours(void)const " (?get_hours@Clock@@QBEHXZ) referenced in function _main
1>C:\Users\ugur\Documents\Visual Studio 2010\Projects\polymorphism\Debug\polymorphism.exe : fatal error LNK1120: 2 unresolved externals
thanks you for helping keskiverto.I solved the problem.I reoved cpp and headers filesfrom the projects and I added them again and the problem is solved.