C++/C++ linking error
Expert: Prince M. Premnath - 9/2/2006
QuestionHi. I am trying to complete a project for my C++ class and I keep getting this linking error. I've created a new project using Win32 console and I still get the same error. What do I need to do from here?
Linking...
prg9-4-4.obj : error LNK2001: unresolved external symbol "int __cdecl Calc_Grade(int,int)" (?Calc_Grade@@YAHHH@Z)
Debug/prg9-4-4.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
AnswerPossibly for the first time your program run pretty well and for the second time after closing the file it fails !
this is due to opening a file insted of workspace.
try this File -> openworkspace -> your workspace name ( your workspace name is same as your proect name ).