Sign in to follow this  
  • entries
    9
  • comments
    4
  • views
    4109

*Resolved* ... Visual Studio Error

Sign in to follow this  
Redocami

186 views

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.
*RESOLVED*
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 ------
Compiling...t
NodeTree.cpp
Linking...
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