Game Development Community

Compiling problem after updated engine

by Andrew Mendrzycki · in Torque Game Engine · 08/21/2005 (9:20 am) · 19 replies

I updated engine and I can't compile Torque. I work on Windows, compiling on Visual C++ 6.0. It's a message error:

--------------------Configuration: Torque Demo - Win32 Debug--------------------
Linking...
guiOtherTreeViewCtrl.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GuiControl::onMiddleMouseDragged(struct GuiEvent const &)" (?onMiddleMouseDragged@GuiControl@@UAEXABUGuiEvent@@@Z)
guiTickCtrl.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GuiControl::onMiddleMouseDragged(struct GuiEvent const &)" (?onMiddleMouseDragged@GuiControl@@UAEXABUGuiEvent@@@Z)
showTSShape.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GuiControl::onMiddleMouseDragged(struct GuiEvent const &)" (?onMiddleMouseDragged@GuiControl@@UAEXABUGuiEvent@@@Z)
guiCtrlArrayCtrl.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GuiControl::onMiddleMouseDragged(struct GuiEvent const &)" (?onMiddleMouseDragged@GuiControl@@UAEXABUGuiEvent@@@Z)
guiPaneCtrl.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GuiControl::onMiddleMouseDragged(struct GuiEvent const &)" (?onMiddleMouseDragged@GuiControl@@UAEXABUGuiEvent@@@Z)
guiStackCtrl.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GuiControl::onMiddleMouseDragged(struct GuiEvent const &)" (?onMiddleMouseDragged@GuiControl@@UAEXABUGuiEvent@@@Z)
debugView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GuiControl::onMiddleMouseDragged(struct GuiEvent const &)" (?onMiddleMouseDragged@GuiControl@@UAEXABUGuiEvent@@@Z)
gameTSCtrl.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GuiControl::onMiddleMouseDragged(struct GuiEvent const &)" (?onMiddleMouseDragged@GuiControl@@UAEXABUGuiEvent@@@Z)
guiNoMouseCtrl.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GuiControl::onMiddleMouseDragged(struct GuiEvent const &)" (?onMiddleMouseDragged@GuiControl@@UAEXABUGuiEvent@@@Z)
guiPlayerView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GuiControl::onMiddleMouseDragged(struct GuiEvent const &)" (?onMiddleMouseDragged@GuiControl@@UAEXABUGuiEvent@@@Z)
guiCrossHairHud.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GuiControl::onMiddleMouseDragged(struct GuiEvent const &)" (?onMiddleMouseDragged@GuiControl@@UAEXABUGuiEvent@@@Z)

...

torqueDemo_DEBUG.exe - 66 error(s), 0 warning(s)

Thanks for help.

#1
08/21/2005 (4:10 pm)
Some files moved from 1.3 to the HEAD; maybe you're falling victim to that?
#2
08/21/2005 (6:28 pm)
Did you do a clean before re-building?
#3
08/22/2005 (10:46 am)
Thanks Mike. I've forgot about cleaning, but after cleaning and recompiling (without any errors), my torqueDemo_Debug.exe is dead, only a black console with blinking cursor on the screen. I have no idea what's wrong. Any advice?
#4
08/22/2005 (10:58 am)
Might it have a broken set of scripts? Is the console.log being generated?
#5
08/22/2005 (11:02 am)
Hum.. they are all middle mouse dragged errors...
#6
08/22/2005 (12:03 pm)
No, there's no console.log. It was one generated for a previously compiled verision, but no any actual one. Except a main.cs file in a root directory is also .#main.cs.2.1. Is it a necessary file?
#7
08/22/2005 (12:20 pm)
There's is one more strange thing about updated files. All updated .cc files are black and white in editor, no green for comments, blue for variables and so on. When I click source file properties in my Visual C++ 6.0, a "language" combo list is set "none" and I have to set this on "C/C++" position. This problem is only in updated .cc files.
#8
08/23/2005 (12:21 am)
Did you run the reg fix?
#9
08/23/2005 (2:38 pm)
What do you mean about reg fix? Is it a CVS option?
#10
08/23/2005 (2:42 pm)
The registry file in the vc6 folder called "VC6 .cc compiling.reg" that allows VC6 to properly handle and compile .cc files (as covered in Step 3 of the Getting Started docs.
#11
08/23/2005 (2:57 pm)
I run it before compiling and after it.
#12
08/23/2005 (3:38 pm)
Have you moved your main.cs file somewhere so the game might not recognize it?

Since the console.log is not generated, I mean.
#13
08/24/2005 (12:25 pm)
After removing main.cs program generates the error: "Failed to open main.cs" and "Failed to initialize game. Shutting down", but console.log is not created.
#14
08/24/2005 (6:38 pm)
Yes, that's because main.cs sets up the console logging.
#15
08/31/2005 (1:04 pm)
I've dowlnloaded the engine again and everything is fine, but there is the same problem with Visual. All letters in files are black and white and source file properties are: "none" but no "C/C++". Every file except of Torque files is blue, green or red lettered. It's no big deal, but reading files is very unconfortable and hard. Is it a matter of Service Pack?
#16
08/31/2005 (3:20 pm)
Did you run the registry patch?
#17
08/31/2005 (10:37 pm)
Yes, I did.
#18
09/01/2005 (12:16 am)
Some of the non-English versions of VC6 have issues with the registry patch:

FAQ: Compiling Torque With German Visual C ++
#19
09/01/2005 (10:15 am)
But I use english version of VC6.