You are here:

C++/C++ linking error

Advertisement


Question
Hi. 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.

Answer
Possibly 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 ).

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


Prince M. Premnath

Expertise

Years of research in C/C++ Will bring you all facts regarding , OOPS , SVGA , MOUSE , BIOS , IVT , Feel free to query me :-)

Experience

More than 5 years

Education/Credentials
MCA

©2016 About.com. All rights reserved.