Error in "compiling torque with VS 2005 express" article?
by Highlander · in Torque Game Engine · 12/13/2006 (9:09 pm) · 7 replies
Hi guys,
I downloaded Torque 1.4.2. Then I went to this page:
http://tdn.garagegames.com/wiki/Torque/vs2k5
which is "Guide to Compiling TGE 1.4 with Visual Studio 2005 Express"
I followed the directions twice on two separate attempts but I get the same result: the last build fails (for the Torque Demo project). It fails due to 14 LNK2019 (unresolved symbol) errors (pasted below).
I followed the directions exactly, so I am wondering what I am doing wrong here. The torque directory is C:\Torque\SDK.
Any ideas?
Compiling manifest to resources...
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)
guiDirectoryFileListCtrl.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GuiListBoxCtrl::parentResized(class Point2I const &,class Point2I const &)" (?parentResized@GuiListBoxCtrl@@UAEXABVPoint2I@@0@Z)
guiDirectoryFileListCtrl.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GuiListBoxCtrl::onRender(class Point2I,class RectI const &)" (?onRender@GuiListBoxCtrl@@UAEXVPoint2I@@ABVRectI@@@Z)
guiDirectoryFileListCtrl.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GuiListBoxCtrl::onRenderItem(class RectI,struct GuiListBoxCtrl::LBItem *)" (?onRenderItem@GuiListBoxCtrl@@UAEXVRectI@@PAULBItem@1@@Z)
...etc...
I downloaded Torque 1.4.2. Then I went to this page:
http://tdn.garagegames.com/wiki/Torque/vs2k5
which is "Guide to Compiling TGE 1.4 with Visual Studio 2005 Express"
I followed the directions twice on two separate attempts but I get the same result: the last build fails (for the Torque Demo project). It fails due to 14 LNK2019 (unresolved symbol) errors (pasted below).
I followed the directions exactly, so I am wondering what I am doing wrong here. The torque directory is C:\Torque\SDK.
Any ideas?
Compiling manifest to resources...
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)
guiDirectoryFileListCtrl.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GuiListBoxCtrl::parentResized(class Point2I const &,class Point2I const &)" (?parentResized@GuiListBoxCtrl@@UAEXABVPoint2I@@0@Z)
guiDirectoryFileListCtrl.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GuiListBoxCtrl::onRender(class Point2I,class RectI const &)" (?onRender@GuiListBoxCtrl@@UAEXVPoint2I@@ABVRectI@@@Z)
guiDirectoryFileListCtrl.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GuiListBoxCtrl::onRenderItem(class RectI,struct GuiListBoxCtrl::LBItem *)" (?onRenderItem@GuiListBoxCtrl@@UAEXVRectI@@PAULBItem@1@@Z)
...etc...
#2
12/13/2006 (10:57 pm)
*idx files may missing during compile process.. Then stop compiling and press "Rebuild all"..
#3
@ Dmitry in Visual C++ 2005 Express Edition there is only "rebuild solution", no "rebuild all", but I assume its the same thing. It didn't solve the problem, I got the same errors.
Anyone else have a clue what is the matter?
I am using Visual C++ 2005 Express Edition. All of the linking errors refer to "GuiListBoxCtrl" functions.
12/14/2006 (7:40 am)
@Andy I installed VS C++ express fresh just before attempting the compile. What lib is missing? @ Dmitry in Visual C++ 2005 Express Edition there is only "rebuild solution", no "rebuild all", but I assume its the same thing. It didn't solve the problem, I got the same errors.
Anyone else have a clue what is the matter?
I am using Visual C++ 2005 Express Edition. All of the linking errors refer to "GuiListBoxCtrl" functions.
#4
http://www.garagegames.com/products/torque/tgb/features/111changelist/
"- Fixed bug in guiListBoxCtrl where items couldn't be selected after they were removed and re-added."
Ideas??
12/14/2006 (8:06 am)
I did a google search for GuiListBoxCtrl and it appears to be part of the engine, not the microsoft libraries. It appears in this change list here:http://www.garagegames.com/products/torque/tgb/features/111changelist/
"- Fixed bug in guiListBoxCtrl where items couldn't be selected after they were removed and re-added."
Ideas??
#5
http://www.garagegames.com/products/torque/tgb/features/111changelist/
"- Fixed bug in guiListBoxCtrl where items couldn't be selected after they were removed and re-added."
Ideas??
12/14/2006 (8:39 am)
I did a google search for GuiListBoxCtrl and it appears to be part of the engine, not the microsoft libraries. It appears in this change list here:http://www.garagegames.com/products/torque/tgb/features/111changelist/
"- Fixed bug in guiListBoxCtrl where items couldn't be selected after they were removed and re-added."
Ideas??
#6
might be called GuiListBoxCtrl.cc
but otherwise search the codebase for GuiListBoxCtrl
when you find the cc file it is defined in, add it to the project that needs it.
12/14/2006 (9:21 am)
Check that the cc is indeed part of the project.might be called GuiListBoxCtrl.cc
but otherwise search the codebase for GuiListBoxCtrl
when you find the cc file it is defined in, add it to the project that needs it.
#7
I found the .cc and .h in the directories, but they were not part of the project! I added them to the project and it compiled without error. Perhaps this is an error in the VS 2005 patch that the tutorial refers to?
Thanks!
12/14/2006 (10:17 am)
Hi Badguy,I found the .cc and .h in the directories, but they were not part of the project! I added them to the project and it compiled without error. Perhaps this is an error in the VS 2005 patch that the tutorial refers to?
Thanks!
Associate Andy Hawkins
DrewFX