Hi,
I'm a beginner in c++ programming and am unable to figure out what the following error message means and how to solve it. I'm posting both the code as well as the errors. Kindly help.
thanks in advance,
upad
Error message:
error LNK2019: unresolved external symbol "float __cdecl processEmp1(class std::basic_ifstream<char,struct std::char_traits<char> > &,class std::basic_ofstream<char,struct std::char_traits<char> > &)" (?processEmp1@@YAMAAV?$basic_ifstream@DU?$char_traits@D@std@@@std@@AAV?$basic_ofstream@DU?$char_traits@D@std@@@2@@Z) referenced in function _main
1>C:\Users\Owner\Documents\Visual Studio 2010\Projects\Ch8\Debug\Ch8.exe : fatal error LNK1120: 1 unresolved externals
Code:
# include <iostream>
# include <cmath>
# include <fstream>
# include <cstdlib>
# include <string>
Also, notice that your processEmp1 function is defined differently than I expect you intended to define it (like its declaration further up). As a result, that function that you're using in main() has never been defined, and the linker hates it.