Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error LNK2001 - GetruntimeClass error

Status
Not open for further replies.

pghTech

Technical User
Jul 19, 2006
37
US
I have read the VC help file for the reason for this error and also googled the error and still have not found any helpful understanding for this newbie in order to correct this issue.

My programming was working fine until I started serializing the data. The following error message is what i am receiving and was hoping maybe someone can point me in a direction for looking for the problem:
Basically I have 6 classes that I have added a serialize function member, and i am receiving an error message for each.

[source]
Elements.obj : error LNK2001: unresolved external symbol "public: virtual struct CRuntimeClass * __thiscall CCurve::GetRuntimeClass(void)const " (?GetRuntimeClass@CCurve@@UBEPAUCRuntimeClass@@XZ)
[/source]

Thanks in advance
 
Unresolved external simply means that you declared but never implemented that function. Sometimes you just forget, sometimes you make a typo with the parameters or the return value or the const and so the definition doesn't match up with the declaration, sometimes you forget to add the cpp file that you defined the function in to the project.

Look for the implementation of that function and make sure it is correct.

By the way, I think this was mentioned before, the tags are code tags, not source tags. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top