| noblesm1975 (6) | |||
|
I am getting the following errors: Error 1 error LNK2019: unresolved external symbol "double __cdecl CalculateAverageScore(int * const,int)" (?CalculateAverageScore@@YANQAHH@Z) referenced in function _main c:\Users\Jennifer\documents\visual studio 2010\Projects\Nobles_J_ilab5_A\Nobles_J_ilab5_A\videoGamePlayerProgram.obj Error 2 error LNK2019: unresolved external symbol "void __cdecl DisplayPlayerData(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > * const,int * const,int)" (?DisplayPlayerData@@YAXQAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAHH@Z) referenced in function _main c:\Users\Jennifer\documents\visual studio 2010\Projects\Nobles_J_ilab5_A\Nobles_J_ilab5_A\videoGamePlayerProgram.obj Error 3 error LNK2019: unresolved external symbol "void __cdecl InputData(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > * const,int * const,int &)" (?InputData@@YAXQAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAHAAH@Z) referenced in function _main c:\Users\Jennifer\documents\visual studio 2010\Projects\Nobles_J_ilab5_A\Nobles_J_ilab5_A\videoGamePlayerProgram.obj Here's my code: // ---------------------------------------------------------------------- // Programming Assignment: Ilab05A // Developer: Jennifer Nobles // Date Written: 2/6/2013 // Purpose: Video Game Player Program // ----------------------------------------------------------------------
I have looked at the prototypes, function calls in main, and at the headers and cannot find the issue. Can someone point me in the right direction? | |||
|
Last edited on
|
|||
| ne555 (4385) | |
| The prototypes don't match. | |
|
|
|
| noblesm1975 (6) | |
| What do you mean they don't match? Don't match what? :) | |
|
|
|
| randisking (37) | |
| Look at the prototypes. You aren't declaring the types of variables that you are taking as parameters. | |
|
|
|
| Zereo (428) | |
| Please use codetags when posting code to the forums. You will probably get more replies since it is much easier to read code with codetags. All you need to do it highlight all the code you pasted in and then click the <> button off to the right when replying. | |
|
|
|
| noblesm1975 (6) | |
| I put string and int as parameters. I don't know what else I am supposed to put. | |
|
|
|
| noblesm1975 (6) | |
| Ok Zereo...didn't know how to do that :) ...fixed now | |
|
|
|
| ne555 (4385) | |||||
Case sensitive
Changing the type
| |||||
|
|
|||||