Jump to content
  • Advertisement
Sign in to follow this  
tom_mai78101

LNK2019 error: Undetermined Class Error.

This topic is 2475 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

[I'm totally confused. Visual Studios 2010 would not allow me to compile my source codes due to an infamous undetermined LNK2019 "unresolved external error". It keeps saying:


1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall NewTriangle::~NewTriangle(void)" ([email="??1NewTriangle@@QAE@XZ"]??1NewTriangle@@QAE@XZ[/email]) referenced in function [email="_WinMain@16"]_WinMain@16[/email]
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall NewTriangle::NewTriangle(void)" ([email="??0NewTriangle@@QAE@XZ"]??0NewTriangle@@QAE@XZ[/email]) referenced in function [email="_WinMain@16"]_WinMain@16[/email]
[/quote]

-------------------

[color="#ff0000"]EDIT: The newer attachment is at Post #3 (below ryan20fun's post).

The main problem is that, the NewTriangle is a class. A class that have all member functions defined in its CPP file. As for the main.cpp in the ZIP file, I commented out some lines, just to try and invoke the creation and deletion of NewTriangle class.

If the commented part were uncommented, then it would give 2 more LNK2019 errors to the same NewTriangle class, which is why I couldn't solve it out. So, I really don't know how to solve it, and I would like for some help. Tips would be awesome.

Share this post


Link to post
Share on other sites
Advertisement

i cannot load the project, the vcxproj file is missing,
can you upload it ?


I have reupload the project again. Tell me if there's more missing files. :)


[attachment=4934:Practice.zip]

Share this post


Link to post
Share on other sites
The new ZIP file still seems to be incomplete. The project contains core.h/core.cpp and triangle.h/trangle.cpp, which are all missing from the ZIP. And NewTriangle.h/NewTriangle.cpp are in the ZIP file, but are not part of the project when it is loaded up.

Share this post


Link to post
Share on other sites

The new ZIP file still seems to be incomplete. The project contains core.h/core.cpp and triangle.h/trangle.cpp, which are all missing from the ZIP. And NewTriangle.h/NewTriangle.cpp are in the ZIP file, but are not part of the project when it is loaded up.


Wow! You found my problem! It was the VCXPROJ file that was outdated, which also caused Visual Studios 2010 to crash. And I thought my files were added correctly, yet I didn't check it, until now.

Thank you!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!