compile errors, cannot figure out

nevermind
Last edited on
Copy and paste the exact error messages, not the useless error numbers.
Error 2 error LNK1120: 1 unresolved externals C:\Programming\last project\Debug\last project.exe last project


Error 1 error LNK2019: unresolved external symbol "bool __cdecl FindMatch(struct UserRecord,struct UserRecord * const)" (?FindMatch@@YA_NUUserRecord@@QAU1@@Z) referenced in function _main C:\Programming\last project\last project\project 6.obj last project
Compare lines 25 and 61:

bool FindMatch(UserRecord, UserRecord[] );

bool FindMatch(UserRecord toBeMatched, ListRecord file[] )

As they are, they are two completely unrelated functions that just so happen to share the same name.
Last edited on
http://www.cplusplus.com/forum/general/113904/

compare
1
2
bool FindMatch(UserRecord, UserRecord[] ); //line 25
bool FindMatch(UserRecord toBeMatched, ListRecord file[] ) //line 61 


Also, your code does not compile, it cannot possibly generate a linker error.
Last edited on
Topic archived. No new replies allowed.