Game Development Community

Problems Building TSE With Codeblocks/VC Toolkit 2003

by Aaryna Delsorou · in Torque Game Engine Advanced · 10/19/2005 (10:22 am) · 2 replies

I've been trying to get TSE built with these free tools... hasn't been easy, but I managed to get it very close to done... but I haven't figured out this last problem.

I've got zlib, lungif, lpng, ljpeg, dtsSDK and TSE Lib all built. I know why the max exporters don't build, and I don't need them anyway.

map2dif will not build, with the following errors:

engine_DEBUG.lib(mMathSSE.obj) : error LNK2019: unresolved external symbol _SSE_MatrixF_x_MatrixF referenced in function "void __cdecl mInstall_Library_SSE(void)" (?mInstall_Library_SSE@@YAXXZ)

engine_DEBUG.lib(mMathAMD.obj) : error LNK2019: unresolved external symbol _Athlon_MatrixF_x_MatrixF referenced in function "void __cdecl mInstall_AMD_Math(void)" (?mInstall_AMD_Math@@YAXXZ)

engine_DEBUG.lib(winCPUInfo.obj) : error LNK2019: unresolved external symbol _detectX86CPUInfo referenced in function "public: static void __cdecl Processor::init(void)" (?init@Processor@@SAXXZ)

engine_DEBUG.lib(DXDiagNVUtil.obj) : error LNK2019: unresolved external symbol __imp__VariantClear@4 referenced in function "public: long __thiscall NVDXDiagWrapper::DXDiagNVUtil::GetProperty(struct NVDXDiagWrapper::IDxDiagContainer *,unsigned short const *,class std::basic_string,class std::allocator > *)" (?GetProperty@DXDiagNVUtil@NVDXDiagWrapper@@QAEJPAUIDxDiagContainer@2@PBGPAV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@@Z)

engine_DEBUG.lib(DXDiagNVUtil.obj) : error LNK2019: unresolved external symbol __imp__VariantInit@4 referenced in function "public: long __thiscall NVDXDiagWrapper::DXDiagNVUtil::GetProperty(struct NVDXDiagWrapper::IDxDiagContainer *,unsigned short const *,class std::basic_string,class std::allocator > *)" (?GetProperty@DXDiagNVUtil@NVDXDiagWrapper@@QAEJPAUIDxDiagContainer@2@PBGPAV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@@Z)

engine_DEBUG.lib(DXDiagNVUtil.obj) : error LNK2019: unresolved external symbol __imp__CoCreateInstance@20 referenced in function "public: long __thiscall NVDXDiagWrapper::DXDiagNVUtil::InitIDxDiagContainer(void)" (?InitIDxDiagContainer@DXDiagNVUtil@NVDXDiagWrapper@@QAEJXZ)

engine_DEBUG.lib(DXDiagNVUtil.obj) : error LNK2019: unresolved external symbol __imp__CoInitialize@4 referenced in function "public: long __thiscall NVDXDiagWrapper::DXDiagNVUtil::InitIDxDiagContainer(void)" (?InitIDxDiagContainer@DXDiagNVUtil@NVDXDiagWrapper@@QAEJXZ)

engine_DEBUG.lib(DXDiagNVUtil.obj) : error LNK2019: unresolved external symbol __imp__CoUninitialize@0 referenced in function "public: long __thiscall NVDXDiagWrapper::DXDiagNVUtil::FreeIDxDiagContainer(void)" (?FreeIDxDiagContainer@DXDiagNVUtil@NVDXDiagWrapper@@QAEJXZ)

About the author

Recent Threads


#1
10/19/2005 (10:22 am)
Torque Shader Engine will not build, with the following similar errors:

vorbisStream.obj : error LNK2001: unresolved external symbol _errno

DXDiagNVUtil.obj : error LNK2019: unresolved external symbol __imp__VariantClear@4 referenced in function "public: long __thiscall
NVDXDiagWrapper::DXDiagNVUtil::GetProperty(struct NVDXDiagWrapper::IDxDiagContainer *,unsigned short const *,class std::basic_string,class std::allocator > *)" (?GetProperty@DXDiagNVUtil@NVDXDiagWrapper@@QAEJPAUIDxDiagContainer@2@PBGPAV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@@Z)

DXDiagNVUtil.obj : error LNK2019: unresolved external symbol __imp__VariantInit@4 referenced in function "public: long __thiscall NVDXDiagWrapper::DXDiagNVUtil::GetProperty(struct NVDXDiagWrapper::IDxDiagContainer *,unsigned short const *,class std::basic_string,class std::allocator > *)" (?GetProperty@DXDiagNVUtil@NVDXDiagWrapper@@QAEJPAUIDxDiagContainer@2@PBGPAV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@@Z)

DXDiagNVUtil.obj : error LNK2019: unresolved external symbol __imp__CoCreateInstance@20 referenced in function "public: long __thiscall NVDXDiagWrapper::DXDiagNVUtil::InitIDxDiagContainer(void)" (?InitIDxDiagContainer@DXDiagNVUtil@NVDXDiagWrapper@@QAEJXZ)

DXDiagNVUtil.obj : error LNK2019: unresolved external symbol __imp__CoInitialize@4 referenced in function "public: long __thiscall NVDXDiagWrapper::DXDiagNVUtil::InitIDxDiagContainer(void)" (?InitIDxDiagContainer@DXDiagNVUtil@NVDXDiagWrapper@@QAEJXZ)

DXDiagNVUtil.obj : error LNK2019: unresolved external symbol __imp__CoUninitialize@0 referenced in function "public: long __thiscall NVDXDiagWrapper::DXDiagNVUtil::FreeIDxDiagContainer(void)" (?FreeIDxDiagContainer@DXDiagNVUtil@NVDXDiagWrapper@@QAEJXZ)

mMathAMD.obj : error LNK2019: unresolved external symbol _Athlon_MatrixF_x_MatrixF referenced in function "void __cdecl mInstall_AMD_Math(void)" (?mInstall_AMD_Math@@YAXXZ)

mMathSSE.obj : error LNK2019: unresolved external symbol _SSE_MatrixF_x_MatrixF referenced in function "void __cdecl mInstall_Library_SSE(void)" (?mInstall_Library_SSE@@YAXXZ)

winCPUInfo.obj : error LNK2019: unresolved external symbol _detectX86CPUInfo referenced in function "public: static void __cdecl Processor::init(void)" (?init@Processor@@SAXXZ)



I'll admit I don't know all that much about this at the moment... I was hoping to use TGE/TSE as a learning tool. But I didn't expect this much trouble just getting the head code to compile.

What's wrong here and what do I need to do to fix it?
#2
10/19/2005 (11:16 am)
Well for the CoCreateInstance and other functions in DXDiagNVUtil, you need to include comobj.lib or oleaut32.lib or something like that in your link list. I'd check the VC7 project to see what libraries it's including to fix these issues.