Game Development Community

Unresolved external symbol compiling error.

by Bill Davis · in Technical Issues · 11/29/2006 (4:32 pm) · 4 replies

Hello everyone,
im pretty new to torque and am having problems compiling.

I am using MS VC++ 2005 Express Edition
When ever I compile, the Torque Demo solution always fails. its the only one also, all 6 others are ok.
I keep getting this error:

../example/torqueDemo_DEBUG.exe : fatal error LNK1120: 14 unresolved externals
Build log was saved at "file://c:\Torque\SDK\engine\out.VC8.DEBUG\BuildLog.htm"
Torque Demo - 15 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 6 up-to-date, 0 skipped ==========

this is an example of one of the errors:

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)

all of the other indavidual errors are within guiDirectoryFileListCtrl.obj as well.

I dont know what I am doing wrong because I've been following the http://tdn.garagegames.com/wiki/Torque/vs2k5 tutorial word for word and I cant get around these errors.

I was using Version 1.5 of Torque but this was giving me around 80 of the same errors. Scaling back to 1.4 reduced the errors to 15, but they are still the same.

Is this because a library file is being incorrectly included? im still kinda new to compilers.. I prefer interpreted languages such as Perl :)

Any help would be greatly appreciated because im pretty stumped about what to do next. Thanks.

About the author

Recent Threads


#1
11/30/2006 (12:52 pm)
There is only 1 file that is of type "solution" in the compiler folder, it is the file "T2D SDK.sln" The other 7 files are of type "vcproj" , one having the same name as the solution file but with the project extension. All 7 project files will open up automatically when you open up this solution file. I get a clean build that way. Stated another way, click file/open/project/solution, browse to your compiler/VisualStudio 2005/ folder, and open up the file "T2D SDK.sln"
I hope that helps
#2
12/15/2006 (5:37 pm)
I'm having this exact same problem with torque 1.4.2. = /

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)
guiDirectoryFileListCtrl.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall GuiListBoxCtrl::~GuiListBoxCtrl(void)" (??1GuiListBoxCtrl@@UAE@XZ) referenced in function "public: virtual __thiscall GuiDirectoryFileListCtrl::~GuiDirectoryFileListCtrl(void)" (??1GuiDirectoryFileListCtrl@@UAE@XZ)
guiDirectoryFileListCtrl.obj : error LNK2019: unresolved external symbol "public: virtual void __thiscall GuiListBoxCtrl::onMouseDown(struct GuiEvent const &)" (?onMouseDown@GuiListBoxCtrl@@UAEXABUGuiEvent@@@Z) referenced in function "public: virtual void __thiscall GuiDirectoryFileListCtrl::onMouseDown(struct GuiEvent const &)" (?onMouseDown@GuiDirectoryFileListCtrl@@UAEXABUGuiEvent@@@Z)
guiDirectoryFileListCtrl.obj : error LNK2019: unresolved external symbol "public: char const * __thiscall GuiListBoxCtrl::getItemText(int)" (?getItemText@GuiListBoxCtrl@@QAEPBDH@Z) referenced in function "public: char const * __thiscall GuiDirectoryFileListCtrl::getSelectedFileName(void)" (?getSelectedFileName@GuiDirectoryFileListCtrl@@QAEPBDXZ)
guiDirectoryFileListCtrl.obj : error LNK2019: unresolved external symbol "public: int __thiscall GuiListBoxCtrl::getSelectedItem(void)" (?getSelectedItem@GuiListBoxCtrl@@QAEHXZ) referenced in function "public: char const * __thiscall GuiDirectoryFileListCtrl::getSelectedFileName(void)" (?getSelectedFileName@GuiDirectoryFileListCtrl@@QAEPBDXZ)
guiDirectoryFileListCtrl.obj : error LNK2019: unresolved external symbol "public: int __thiscall GuiListBoxCtrl::addItem(char const *,void *)" (?addItem@GuiListBoxCtrl@@QAEHPBDPAX@Z) referenced in function "protected: void __thiscall GuiDirectoryFileListCtrl::openDirectory(void)" (?openDirectory@GuiDirectoryFileListCtrl@@IAEXXZ)
guiDirectoryFileListCtrl.obj : error LNK2019: unresolved external symbol "public: void __thiscall GuiListBoxCtrl::clearItems(void)" (?clearItems@GuiListBoxCtrl@@QAEXXZ) referenced in function "protected: void __thiscall GuiDirectoryFileListCtrl::openDirectory(void)" (?openDirectory@GuiDirectoryFileListCtrl@@IAEXXZ)
guiDirectoryFileListCtrl.obj : error LNK2019: unresolved external symbol "public: void __thiscall GuiListBoxCtrl::getSelectedItems(class Vector<int> &)" (?getSelectedItems@GuiListBoxCtrl@@QAEXAAV?$Vector@H@@@Z) referenced in function "char const * __cdecl cGuiDirectoryFileListCtrlgetSelectedFiles(class GuiDirectoryFileListCtrl *,int,char const * *)" (?cGuiDirectoryFileListCtrlgetSelectedFiles@@YAPBDPAVGuiDirectoryFileListCtrl@@HPAPBD@Z)
guiDirectoryFileListCtrl.obj : error LNK2019: unresolved external symbol "public: static void __cdecl GuiListBoxCtrl::initPersistFields(void)" (?initPersistFields@GuiListBoxCtrl@@SAXXZ) referenced in function "public: virtual void __thiscall ConcreteClassRep<class GuiDirectoryFileListCtrl>::init(void)const " (?init@?$ConcreteClassRep@VGuiDirectoryFileListCtrl@@@@UBEXXZ)
guiDirectoryFileListCtrl.obj : error LNK2019: unresolved external symbol "public: virtual bool __thiscall GuiListBoxCtrl::onWake(void)" (?onWake@GuiListBoxCtrl@@UAE_NXZ) referenced in function "public: virtual bool __thiscall GuiDirectoryFileListCtrl::onWake(void)" (?onWake@GuiDirectoryFileListCtrl@@UAE_NXZ)
../example/torqueDemo.exe : fatal error LNK1120: 14 unresolved externals

I'm doing exactly this:

File -> Open -> Project/Solution

Selecting /VS2005/Torque SDK.sln

Configure release and debug. (Setting the working directory to ../example)

Regardless if I build Release or Debug I get these linking errors.

Anyone have any clues?

*edit* Cleaned up something I posted twice.

*update* This also happens in Release or Debug regardless if I try to just build Torque Demo or build the entire solution. =P
#3
12/22/2006 (9:05 am)
I have exactly the same problem as detailed above. I used a clean install of the whole engine as well and I still get the error.
I am stumped as to why this problem happened. I followed all the installtion instruction of MS C++ Express as well.
Anyone have any solutions, I think im gonna cry here !!!
#4
12/22/2006 (9:07 am)
Linking...
9>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)
9>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)
9>guiDirectoryFileListCtrl.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GuiListBoxCtrl::parentResized(class Point2I const &,class Point2I const &)" (?parentResized@GuiListBoxCtrl@@UAEXABVPoint2I@@0@Z)
9>guiDirectoryFileListCtrl.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GuiListBoxCtrl::onRender(class Point2I,class RectI const &)" (?onRender@GuiListBoxCtrl@@UAEXVPoint2I@@ABVRectI@@@Z)
9>guiDirectoryFileListCtrl.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GuiListBoxCtrl::onRenderItem(class RectI,struct GuiListBoxCtrl::LBItem *)" (?onRenderItem@GuiListBoxCtrl@@UAEXVRectI@@PAULBItem@1@@Z)
9>guiDirectoryFileListCtrl.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall GuiListBoxCtrl::~GuiListBoxCtrl(void)" (??1GuiListBoxCtrl@@UAE@XZ) referenced in function "public: virtual __thiscall GuiDirectoryFileListCtrl::~GuiDirectoryFileListCtrl(void)" (??1GuiDirectoryFileListCtrl@@UAE@XZ)
9>guiDirectoryFileListCtrl.obj : error LNK2019: unresolved external symbol "public: virtual bool __thiscall GuiListBoxCtrl::onWake(void)" (?onWake@GuiListBoxCtrl@@UAE_NXZ) referenced in function "public: virtual bool __thiscall GuiDirectoryFileListCtrl::onWake(void)" (?onWake@GuiDirectoryFileListCtrl@@UAE_NXZ)
9>guiDirectoryFileListCtrl.obj : error LNK2019: unresolved external symbol "public: virtual void __thiscall GuiListBoxCtrl::onMouseDown(struct GuiEvent const &)" (?onMouseDown@GuiListBoxCtrl@@UAEXABUGuiEvent@@@Z) referenced in function "public: virtual void __thiscall GuiDirectoryFileListCtrl::onMouseDown(struct GuiEvent const &)" (?onMouseDown@GuiDirectoryFileListCtrl@@UAEXABUGuiEvent@@@Z)
9>guiDirectoryFileListCtrl.obj : error LNK2019: unresolved external symbol "public: int __thiscall GuiListBoxCtrl::addItem(char const *,void *)" (?addItem@GuiListBoxCtrl@@QAEHPBDPAX@Z) referenced in function "protected: void __thiscall GuiDirectoryFileListCtrl::openDirectory(void)" (?openDirectory@GuiDirectoryFileListCtrl@@IAEXXZ)
9>guiDirectoryFileListCtrl.obj : error LNK2019: unresolved external symbol "public: void __thiscall GuiListBoxCtrl::clearItems(void)" (?clearItems@GuiListBoxCtrl@@QAEXXZ) referenced in function "protected: void __thiscall GuiDirectoryFileListCtrl::openDirectory(void)" (?openDirectory@GuiDirectoryFileListCtrl@@IAEXXZ)
9>guiDirectoryFileListCtrl.obj : error LNK2019: unresolved external symbol "public: char const * __thiscall GuiListBoxCtrl::getItemText(int)" (?getItemText@GuiListBoxCtrl@@QAEPBDH@Z) referenced in function "public: char const * __thiscall GuiDirectoryFileListCtrl::getSelectedFileName(void)" (?getSelectedFileName@GuiDirectoryFileListCtrl@@QAEPBDXZ)
9>guiDirectoryFileListCtrl.obj : error LNK2019: unresolved external symbol "public: int __thiscall GuiListBoxCtrl::getSelectedItem(void)" (?getSelectedItem@GuiListBoxCtrl@@QAEHXZ) referenced in function "public: char const * __thiscall GuiDirectoryFileListCtrl::getSelectedFileName(void)" (?getSelectedFileName@GuiDirectoryFileListCtrl@@QAEPBDXZ)
9>guiDirectoryFileListCtrl.obj : error LNK2019: unresolved external symbol "public: static void __cdecl GuiListBoxCtrl::initPersistFields(void)" (?initPersistFields@GuiListBoxCtrl@@SAXXZ) referenced in function "public: virtual void __thiscall ConcreteClassRep::init(void)const " (?init@?$ConcreteClassRep@VGuiDirectoryFileListCtrl@@@@UBEXXZ)
9>guiDirectoryFileListCtrl.obj : error LNK2019: unresolved external symbol "public: void __thiscall GuiListBoxCtrl::getSelectedItems(class Vector &)" (?getSelectedItems@GuiListBoxCtrl@@QAEXAAV?$Vector@H@@@Z) referenced in function "char const * __cdecl cGuiDirectoryFileListCtrlgetSelectedFiles(class GuiDirectoryFileListCtrl *,int,char const * *)" (?cGuiDirectoryFileListCtrlgetSelectedFiles@@YAPBDPAVGuiDirectoryFileListCtrl@@HPAPBD@Z)
9>../example/torqueDemo_DEBUG.exe : fatal error LNK1120: 14 unresolved externals
9>Build log was saved at "file://c:\Torque\SDK\engine\out.VC8.DEBUG\BuildLog.htm"
9>Torque Demo - 15 error(s), 0 warning(s)
========== Build: 1 succeeded, 5 failed, 7 up-to-date, 3 skipped ==========

Sorry, this is the exact problem output for completeness.