Undefined externals in IME code. What am I missing?

When trying to build the latest HG code for SDL 1.3 in Visual Studio:

1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_ImmReleaseContext at 8 referenced in function _IME_Init
1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_ImmGetContext at 4 referenced in function _IME_Init
1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_ImmAssociateContext at 8 referenced in function _IME_Enable
1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_ImmGetIMEFileNameA at 12 referenced in function _IME_SetupAPI
1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_ImmSetCompositionStringW at 24 referenced in function _IME_ClearComposition
1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_ImmNotifyIME at 16 referenced in function _IME_ClearComposition
1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_VerQueryValueA at 16 referenced in function _IME_GetId
1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_GetFileVersionInfoA at 16 referenced in function _IME_GetId
1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_GetFileVersionInfoSizeA at 8 referenced in function _IME_GetId
1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_ImmGetCompositionStringW at 16 referenced in function _IME_GetCompositionString
1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_ImmGetDefaultIMEWnd at 4 referenced in function _IME_InputLangChanged

Apparently I’m missing a .lib file somewhere. Anyone know what and why?

You’re missing imm32.lib and version.lib

What project are you building from?On Fri, Oct 29, 2010 at 11:54 AM, Mason Wheeler wrote:

When trying to build the latest HG code for SDL 1.3 in Visual Studio:

1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_ImmReleaseContext at 8 referenced in function _IME_Init
1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_ImmGetContext at 4 referenced in function _IME_Init
1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_ImmAssociateContext at 8 referenced in function _IME_Enable
1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_ImmGetIMEFileNameA at 12 referenced in function _IME_SetupAPI
1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_ImmSetCompositionStringW at 24 referenced in function _IME_ClearComposition
1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_ImmNotifyIME at 16 referenced in function _IME_ClearComposition
1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_VerQueryValueA at 16 referenced in function _IME_GetId
1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_GetFileVersionInfoA at 16 referenced in function _IME_GetId
1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_GetFileVersionInfoSizeA at 8 referenced in function _IME_GetId
1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_ImmGetCompositionStringW at 16 referenced in function _IME_GetCompositionString
1>SDL_win32keyboard.obj : error LNK2019: unresolved external symbol
_ImmGetDefaultIMEWnd at 4 referenced in function _IME_InputLangChanged

Apparently I’m missing a .lib file somewhere. ?Anyone know what and why?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


? ? -Sam Lantinga, Founder and President, Galaxy Gameworks LLC

The VS2008 project.>----- Original Message ----

From: Sam Lantinga
Subject: Re: [SDL] Undefined externals in IME code. What am I missing?

You’re missing imm32.lib and version.lib

What project are you building from?

ImmReleaseContext (http://msdn.microsoft.com/en-us/library/dd318576(VS.85).aspx)

Try adding imm32.lib.