Game Development Community

Can't get Head... to compile. UTF8toUTF32?

by Cinder Games · in Torque Game Engine · 11/09/2005 (9:00 pm) · 4 replies

Having difficulty getting the latest head from today to work. I am using Visual Studio 7. I fixed the linking issues with the LIB files for the project.... and i think i'm down to the last errors...


Linking...
stringBuffer.obj : error LNK2019: unresolved external symbol "unsigned int const __cdecl convertUTF16toUTF8(unsigned short const *,char *,unsigned int)" (?convertUTF16toUTF8@@YA?BIPBGPADI@Z) referenced in function "public: void __thiscall StringBuffer::get(char *,unsigned int)const " (?get@StringBuffer@@QBEXPADI@Z)
winWindow.obj : error LNK2001: unresolved external symbol "unsigned int const __cdecl convertUTF16toUTF8(unsigned short const *,char *,unsigned int)" (?convertUTF16toUTF8@@YA?BIPBGPADI@Z)
stringBuffer.obj : error LNK2019: unresolved external symbol "unsigned int const __cdecl dStrlen(unsigned short const *)" (?dStrlen@@YA?BIPBG@Z) referenced in function "public: void __thiscall StringBuffer::set(unsigned short const *)" (?set@StringBuffer@@QAEXPBG@Z)
stringBuffer.obj : error LNK2019: unresolved external symbol "unsigned int const __cdecl convertUTF8toUTF16(char const *,unsigned short *,unsigned int)" (?convertUTF8toUTF16@@YA?BIPBDPAGI@Z) referenced in function "public: void __thiscall StringBuffer::set(char const *)" (?set@StringBuffer@@QAEXPBD@Z)
dgl.obj : error LNK2001: unresolved external symbol "unsigned int const __cdecl convertUTF8toUTF16(char const *,unsigned short *,unsigned int)" (?convertUTF8toUTF16@@YA?BIPBDPAGI@Z)
gNewFont.obj : error LNK2001: unresolved external symbol "unsigned int const __cdecl convertUTF8toUTF16(char const *,unsigned short *,unsigned int)" (?convertUTF8toUTF16@@YA?BIPBDPAGI@Z)
guiMLTextCtrl.obj : error LNK2019: unresolved external symbol "unsigned int const __cdecl oneUTF8toUTF32(char const *,unsigned int *)" (?oneUTF8toUTF32@@YA?BIPBDPAI@Z) referenced in function "public: static char * __cdecl GuiMLTextCtrl::stripControlChars(char const *)" (?stripControlChars@GuiMLTextCtrl@@SAPADPBD@Z)
winFont.obj : error LNK2001: unresolved external symbol "unsigned int const __cdecl oneUTF8toUTF32(char const *,unsigned int *)" (?oneUTF8toUTF32@@YA?BIPBDPAI@Z)
../example/torqueDemo.exe : fatal error LNK1120: 4 unresolved externals

Build log was saved at "file://j:\Torque1.4\torque\engine\out.VC6.RELEASE\BuildLog.htm"
Torque Demo - 9 error(s), 0 warning(s)


---------------------- Done ----------------------

    Build: 1 succeeded, 1 failed, 5 skipped



now if i understand correctly those are related to UNICODE support. But i am not defining the use of it. i have that commented out. Can anyone help me figure out what's going on?

#1
11/09/2005 (11:36 pm)
Perhaps some of the built-in conversion code is referenced regardless?
#2
11/10/2005 (9:03 am)
I hade this to with vs6, add all files in the core folder , it worked for me .
#3
11/10/2005 (9:46 am)
You might not be compiling core/unicode.cc in your project. That would explain most of those link errors. Don't forget stringBuffer.cc too.
#4
11/10/2005 (1:36 pm)
Thanks ben! that's exactly what it was. Unicode.cc wasn't included in the project for some reason. Adding that stopped the errors :)