Fatal Error on Rebuild
by Infinitum3D · in Torque Game Engine · 03/24/2007 (12:22 am) · 7 replies
I'm using Visual C++ 2005 Express Edition
I'm trying to add aiPlayer.cc and aiPlayer.h from the Advanced AI for Torque 1.4 resource. When I try to rebuild, I get this:
What can I do? When I try to debug, I get the message:
I can still debug by clicking YES, but why does this error occur, and how can it be fixed? Obviously I'm not a programmer, just a newbie still learning.
Thanks!
Tony
I'm trying to add aiPlayer.cc and aiPlayer.h from the Advanced AI for Torque 1.4 resource. When I try to rebuild, I get this:
Quote:
7>Linking...
7>player.obj : error LNK2019: unresolved external symbol "public: __thiscall Inventory::~Inventory(void)" (??1Inventory@@QAE@XZ) referenced in function __unwindfunclet$??0Player@@QAE@XZ$0
7>player.obj : error LNK2019: unresolved external symbol "public: __thiscall Inventory::Inventory(void)" (??0Inventory@@QAE@XZ) referenced in function "public: __thiscall Player::Player(void)" (??0Player@@QAE@XZ)
7>../example/torqueDemo_DEBUG.exe : fatal error LNK1120: 2 unresolved externals
What can I do? When I try to debug, I get the message:
Quote:
Debugging information for 'torqueDemo_debug.exe' cannot be found or does not match. Binary was not built with debug information.
Do you want to continue debugging?
I can still debug by clicking YES, but why does this error occur, and how can it be fixed? Obviously I'm not a programmer, just a newbie still learning.
Thanks!
Tony
#2
Any ideas?
Thanks!
Tony
04/02/2007 (4:49 pm)
If I download a clean Torque copy (meaning a clean Torque.SLN), and compile a build, will I then be able to move my mission files and data folders into it? Or will I lose everything. I haven't made any source changes that will be lost. The AI changes would have been my first and since that didn't work, I'm not losing anything.Any ideas?
Thanks!
Tony
#3
04/02/2007 (4:52 pm)
If your data relies on stock features, you should be fine.
#5
I copied a fresh Torque.sln, and tried to recompile, but no luck. Still trying things.
Tony
04/10/2007 (3:30 pm)
Just an update.I copied a fresh Torque.sln, and tried to recompile, but no luck. Still trying things.
Tony
#6
If so, do you have something like Inventory.cc in your Torque source directory somewhere? If you do you can add it to the solution and I think the error would go away.
If you do not have an Inventory.cc somewhere, you can do a search on "Inventory" and comment those lines out. You will probably find occurrences in the Player constructor and unwind and most likely in the Player.h.
04/10/2007 (11:11 pm)
Player.obj is missing the Inventory class. As far as I know (I could be mistaken here) Torque does not come with an inventory system by itself, so, have you added it yourself? Have you modified your Player class?If so, do you have something like Inventory.cc in your Torque source directory somewhere? If you do you can add it to the solution and I think the error would go away.
If you do not have an Inventory.cc somewhere, you can do a search on "Inventory" and comment those lines out. You will probably find occurrences in the Player constructor and unwind and most likely in the Player.h.
#7
If the Inventory class is missing from Player.obj, then how can I (a newbie) add it?
Thanks!!!
Tony
04/23/2007 (4:48 am)
Torque 1.5 does come with a basic inventory system.If the Inventory class is missing from Player.obj, then how can I (a newbie) add it?
Thanks!!!
Tony
Torque Owner Infinitum3D