Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

*Resolved* ... Visual Studio Error

Sign in to follow this  


Well I was coding a node like structure which I will use as a base object to derive more complex objects in my game engine. This will allow all of them to be organised in the same manner, giving me one interface to control all objects.
I coded this and got rid of all of the syntax errors, but now I get an error which says ...
(Visual Studio 8)
------ Build started: Project: node, Configuration: Debug Win32 ------
NodeTree.obj : error LNK2019: unresolved external symbol "public: __thiscall NodeTree::~NodeTree(void)" (??1NodeTree@@QAE@XZ) referenced in function _main
NodeTree.obj : error LNK2019: unresolved external symbol "public: __thiscall NodeTree::NodeTree(void)" (??0NodeTree@@QAE@XZ) referenced in function _main
MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
Debug\NodeTree.exe : fatal error LNK1120: 3 unresolved externals
Build log was saved at "*comented out for public use in the forum*"
string - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I am unsure what this link error means, but it is occuring in the NodeTree Constructor and Deconstructor. I am going to do some research on this issue, it could be the compiler settings are not set right. I am prety sure the code is good, but I wold't mind some other peoples thoughts.
Sign in to follow this  

1 Comment

Recommended Comments

Well after looking into the issue (thank God for google.com and yahoo.com) I figure it out. I used a method of tabbing my code (prototyping the functions) with out implamenting the functions. When you do this the compiler will be unable to link the header files properly because it was unable to find the implamentations of the prototyped functions.

Next I will work on a StringNode class and a Geometry Class.

Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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!