Compiling error vc++ 6.0, Torque 1.40
by RAPTER · in Torque Game Engine · 09/05/2006 (8:59 am) · 3 replies
I installed Torgque 1.4.0 and compiled it, and got the following error. Can someone tell me how to fix it? Thank you.
buildWad error LNK2019: unresolved external symbol _ImmAssociateContext@8 referenced in function "public: static void __cdecl Platform::enableKeyboardTranslation(void)" (?enableKeyboardTranslation@Platform@@SAXXZ)
buildWad error LNK2019: unresolved external symbol _ImmGetContext@4 referenced in function "public: static void __cdecl Input::activate(void)" (?activate@Input@@SAXXZ)
buildWad error LNK2019: unresolved external symbol _ImmReleaseContext@8 referenced in function "public: static void __cdecl Input::activate(void)" (?activate@Input@@SAXXZ)
buildWad error LNK2019: unresolved external symbol _ImmAssociateContext@8 referenced in function "public: static void __cdecl Platform::enableKeyboardTranslation(void)" (?enableKeyboardTranslation@Platform@@SAXXZ)
buildWad error LNK2019: unresolved external symbol _ImmGetContext@4 referenced in function "public: static void __cdecl Input::activate(void)" (?activate@Input@@SAXXZ)
buildWad error LNK2019: unresolved external symbol _ImmReleaseContext@8 referenced in function "public: static void __cdecl Input::activate(void)" (?activate@Input@@SAXXZ)
About the author
#2
I'm having the same issue. Could you please post the solution? Tried several things with type casting.
void Platform::enableKeyboardTranslation(void)
{
#ifdef UNICODE
// Con::printf("translating...");
ImmAssociateContext( winState.appWindow, winState.imeHandle ); <=== The trouble line.
#endif
}
Thanks!
09/27/2006 (6:59 pm)
Hi Rapter - I'm having the same issue. Could you please post the solution? Tried several things with type casting.
void Platform::enableKeyboardTranslation(void)
{
#ifdef UNICODE
// Con::printf("translating...");
ImmAssociateContext( winState.appWindow, winState.imeHandle ); <=== The trouble line.
#endif
}
Thanks!
#3
Basically, the buildWad project requires the IMM32.LIB which isn't included. To do this, just highlight the buildWad project and right click to Properties. Click on the linker tab, then Input on the left side.
Lastly, insert IMM32.LIB in the Additional Dependencies row on the right hand side of the pop up.
That will fix this issue.
Cheers.
09/28/2006 (6:53 am)
I figured out the issue and thought that others would like to know how to solve this when they run into it.Basically, the buildWad project requires the IMM32.LIB which isn't included. To do this, just highlight the buildWad project and right click to Properties. Click on the linker tab, then Input on the left side.
Lastly, insert IMM32.LIB in the Additional Dependencies row on the right hand side of the pop up.
That will fix this issue.
Cheers.
Torque Owner RAPTER