Doing a debug build
by James Ford · in Torque Game Builder · 05/05/2007 (2:11 pm) · 5 replies
Are there any issues with doing a debug build for 1.5?
I'm getting some "unrecognized symbol" errors, and i think it just has to do with getting all the project directories setup properly. I'm using VS express so I downloaded the SDK and referenced the SDK/lib, SDK/bin, SDK/include as the directions for doing this on TDN said. Do i need to reference one of the subfolders or does what ive done sound right? Is there another folder I'm missing? I 'think' the unrecognized symbols are related to mfc...
winExec.obj : error LNK2019: unresolved external symbol __imp__ShellExecuteExA@4 referenced in function "public: __thiscall ExecuteThread::ExecuteThread(char const *,char const *,char const *)" (??0ExecuteThread@@QAE@PBD00@Z)
1>winExec.obj : error LNK2019: unresolved external symbol __imp__ShellExecuteA@24 referenced in function "public: static void __cdecl Platform::openFolder(char const *)" (?openFolder@Platform@@SAXPBD@Z)
1>winUser.obj : error LNK2019: unresolved external symbol __imp__SHGetSpecialFolderPathA@16 referenced in function "public: static char const * __cdecl Platform::getUserDataDirectory(void)" (?getUserDataDirectory@Platform@@SAPBDXZ)
1>winWindow.obj : error LNK2019: unresolved external symbol __imp__DragFinish@4 referenced in function "long __stdcall WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@@YGJPAUHWND__@@IIJ@Z)
1>winWindow.obj : error LNK2019: unresolved external symbol __imp__DragQueryFileA@16 referenced in function "long __stdcall WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@@YGJPAUHWND__@@IIJ@Z)
1>winWindow.obj : error LNK2019: unresolved external symbol __imp__DragAcceptFiles@8 referenced in function "long __stdcall WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@@YGJPAUHWND__@@IIJ@Z)
1>../../../tgb/TorqueGameBuilder_DEBUG.exe : fatal error LNK1120: 6 unresolved externals
I'm getting some "unrecognized symbol" errors, and i think it just has to do with getting all the project directories setup properly. I'm using VS express so I downloaded the SDK and referenced the SDK/lib, SDK/bin, SDK/include as the directions for doing this on TDN said. Do i need to reference one of the subfolders or does what ive done sound right? Is there another folder I'm missing? I 'think' the unrecognized symbols are related to mfc...
winExec.obj : error LNK2019: unresolved external symbol __imp__ShellExecuteExA@4 referenced in function "public: __thiscall ExecuteThread::ExecuteThread(char const *,char const *,char const *)" (??0ExecuteThread@@QAE@PBD00@Z)
1>winExec.obj : error LNK2019: unresolved external symbol __imp__ShellExecuteA@24 referenced in function "public: static void __cdecl Platform::openFolder(char const *)" (?openFolder@Platform@@SAXPBD@Z)
1>winUser.obj : error LNK2019: unresolved external symbol __imp__SHGetSpecialFolderPathA@16 referenced in function "public: static char const * __cdecl Platform::getUserDataDirectory(void)" (?getUserDataDirectory@Platform@@SAPBDXZ)
1>winWindow.obj : error LNK2019: unresolved external symbol __imp__DragFinish@4 referenced in function "long __stdcall WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@@YGJPAUHWND__@@IIJ@Z)
1>winWindow.obj : error LNK2019: unresolved external symbol __imp__DragQueryFileA@16 referenced in function "long __stdcall WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@@YGJPAUHWND__@@IIJ@Z)
1>winWindow.obj : error LNK2019: unresolved external symbol __imp__DragAcceptFiles@8 referenced in function "long __stdcall WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@@YGJPAUHWND__@@IIJ@Z)
1>../../../tgb/TorqueGameBuilder_DEBUG.exe : fatal error LNK1120: 6 unresolved externals
About the author
http://jamesdev.info
#2
05/07/2007 (12:39 pm)
Shell32.lib is in ...SDK/lib, which i already have in my list of project library directories. Or did you mean something else by "linker inputs"?
#3
This is the explicit list of all libraries that are linked into your application. it won't link anything from the lib paths.
05/07/2007 (1:25 pm)
Yes, its not in the path, you need to add it to the "additional libraries" in the linker inputs. The list where you have kernel32.lib and the like.This is the explicit list of all libraries that are linked into your application. it won't link anything from the lib paths.
#4
05/07/2007 (1:29 pm)
You have to add the library in the project properties menu: Linker/Input/Additional Dependencies
#5
06/10/2007 (1:58 pm)
Thanks that worked!
Torque Owner Neo Binedell