hi... i wrote a relatively large program and everything compiles fine, however the linker give me such error...

--------------------Configuration: Assignment4 - Win32 Debug--------------------

Linking...

Assignment4.obj : error LNK2001: unresolved external symbol "void __cdecl calc_positive_average(double &,int &,int &)" (?calc_positive_average@@YAXAANAAH1@Z)

Debug/Assignment4.exe : fatal error LNK1120: 1 unresolved externals

Error executing link.exe.

Assignment4.exe - 2 error(s), 0 warning(s)

..............

if someone could look at this and explain it to me...perhaps you can give me a solution, i included below the function declaration and its definition (where the problem occurs)

Code:(DECLARATION) void calc_positive_average(double& positive_average, int& positive_sum, int& positive_counter);Code:(DEFINITION) // calc_postive_average() designed for calculating the average of positive // integers. // // Parameters: address of positive_average, postive_sum and positive_counter // Return Value: void void calc_postive_average(double& positive_average, int& positive_sum, int& positive_counter) { static_cast<double>(positive_counter); // casting to "double" so we'll get // double as a result of division. positive_average = (positive_sum / positive_counter); }

thanks in advance

matheo917