Game Development Community

Torque compilation in VS2005

by Tiago Correia · in General Discussion · 05/03/2007 (12:02 pm) · 3 replies

Hi ,

I'm using TGE 1.4.2 and i'm trying to compile de Troke Demo project in Visual C++ 2005 and i get the 15 errors in the linking phase, like these:


Linking...
guiDirectoryFileListCtrl.obj : error LNK2019: unresolved external symbol "public: static class AbstractClassRep * __cdecl GuiListBoxCtrl::getStaticClassRep(void)" (?getStaticClassRep@GuiListBoxCtrl@@SAPAVAbstractClassRep@@XZ) referenced in function "public: static class AbstractClassRep * __cdecl GuiDirectoryFileListCtrl::getParentStaticClassRep(void)" (?getParentStaticClassRep@GuiDirectoryFileListCtrl@@SAPAVAbstractClassRep@@XZ)

guiDirectoryFileListCtrl.obj : error LNK2019: unresolved external symbol "public: __thiscall GuiListBoxCtrl::GuiListBoxCtrl(void)" (??0GuiListBoxCtrl@@QAE@XZ) referenced in function "public: __thiscall GuiDirectoryFileListCtrl::GuiDirectoryFileListCtrl(void)" (??0GuiDirectoryFileListCtrl@@QAE@XZ)


...

../example/torqueDemo_DEBUG.exe : fatal error LNK1120: 14 unresolved externals
Build log was saved at "file://c:\mygame\engine\out.VC8.DEBUG\BuildLog.htm"
Torque Demo - 15 error(s), 0 warning(s)



I used the patch like it is explained in http://tdn.garagegames.com/wiki/Torque/vs2k5 (like Chris Calef said)

Can anyone tell me what is the best IDE to work with TGE (Eclipse or Visual Studio)?


Any help would be appreciated

#1
05/03/2007 (12:32 pm)
TGE 1.4.2 comes with a working VC++ 2005 solution. Just look in the VS2005 folder.
#2
05/04/2007 (1:28 am)
Hi Matt,

I looked in the VS2005 folder and opened the working VC++ 2005 solution (i guess it is Torque SDK.sln)
and tried to build Torque Demo and i got the same errors described above ...
Do you have an idea of why this happens?

Regards,
Tiago
#3
05/04/2007 (8:07 am)
Thanks Matt for your reply. The problem is solved ! I think the error i made was when i used the patch and overwrite all the files in extraction to my Torke directory. I tryed to overwrite only that mencioned in http://tdn.garagegames.com/wiki/Torque/vs2k5 and it works!

Best regards,
Tiago