Jump to content
  • Advertisement
Sign in to follow this  
WuTz

LNK2019 when I want to compile in MSVC++ 2010 express

This topic is 2990 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all! I want to compile my project with the new Visual Studio, but I get these LNK errors:

1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmSetConversionStatus@12 referenced in function "long __cdecl ImeUi_ProcessMessage(struct HWND__ *,unsigned int,unsigned int,long &,bool *)" (?ImeUi_ProcessMessage@@YAJPAUHWND__@@IIAAJPA_N@Z)
1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetConversionStatus@12 referenced in function "long __cdecl ImeUi_ProcessMessage(struct HWND__ *,unsigned int,unsigned int,long &,bool *)" (?ImeUi_ProcessMessage@@YAJPAUHWND__@@IIAAJPA_N@Z)
1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmReleaseContext@8 referenced in function "long __cdecl ImeUi_ProcessMessage(struct HWND__ *,unsigned int,unsigned int,long &,bool *)" (?ImeUi_ProcessMessage@@YAJPAUHWND__@@IIAAJPA_N@Z)
1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetContext@4 referenced in function "long __cdecl ImeUi_ProcessMessage(struct HWND__ *,unsigned int,unsigned int,long &,bool *)" (?ImeUi_ProcessMessage@@YAJPAUHWND__@@IIAAJPA_N@Z)
1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmSetOpenStatus@8 referenced in function "void __cdecl ImeUi_SetState(unsigned long)" (?ImeUi_SetState@@YAXK@Z)
1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmSimulateHotKey@8 referenced in function "void __cdecl ImeUi_SetState(unsigned long)" (?ImeUi_SetState@@YAXK@Z)
1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmAssociateContext@8 referenced in function "void __cdecl ImeUi_EnableIme(bool)" (?ImeUi_EnableIme@@YAX_N@Z)
1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetCandidateListA@16 referenced in function "bool __cdecl ImeUi_Initialize(struct HWND__ *,bool)" (?ImeUi_Initialize@@YA_NPAUHWND__@@_N@Z)
1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetCandidateListW@16 referenced in function "bool __cdecl ImeUi_Initialize(struct HWND__ *,bool)" (?ImeUi_Initialize@@YA_NPAUHWND__@@_N@Z)
1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetCompositionStringW@16 referenced in function "bool __cdecl ImeUi_Initialize(struct HWND__ *,bool)" (?ImeUi_Initialize@@YA_NPAUHWND__@@_N@Z)
1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetCompositionStringA@16 referenced in function "long __stdcall AW_ImmGetCompositionString(struct HIMC__ *,unsigned long,void *,unsigned long)" (?AW_ImmGetCompositionString@@YGJPAUHIMC__@@KPAXK@Z)
1>ImeUi.obj : error LNK2019: unresolved external symbol _VerQueryValueA@16 referenced in function "unsigned long __cdecl GetImeId(unsigned int)" (?GetImeId@@YAKI@Z)
1>ImeUi.obj : error LNK2019: unresolved external symbol _GetFileVersionInfoA@16 referenced in function "unsigned long __cdecl GetImeId(unsigned int)" (?GetImeId@@YAKI@Z)
1>ImeUi.obj : error LNK2019: unresolved external symbol _GetFileVersionInfoSizeA@8 referenced in function "unsigned long __cdecl GetImeId(unsigned int)" (?GetImeId@@YAKI@Z)
1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetIMEFileNameA@12 referenced in function "unsigned long __cdecl GetImeId(unsigned int)" (?GetImeId@@YAKI@Z)
1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetVirtualKey@4 referenced in function "bool __cdecl ImeUi_IgnoreHotKey(struct tagMSG const *)" (?ImeUi_IgnoreHotKey@@YA_NPBUtagMSG@@@Z)
1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmSetCompositionStringW@24 referenced in function "void __cdecl ImeUi_FinalizeString(bool)" (?ImeUi_FinalizeString@@YAX_N@Z)
1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmNotifyIME@16 referenced in function "void __cdecl ImeUi_FinalizeString(bool)" (?ImeUi_FinalizeString@@YAX_N@Z)
1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetOpenStatus@4 referenced in function "void __cdecl CheckToggleState(void)" (?CheckToggleState@@YAXXZ)
1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmIsIME@4 referenced in function "void __cdecl CheckToggleState(void)" (?CheckToggleState@@YAXXZ)
1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetDefaultIMEWnd@4 referenced in function "void __cdecl ImeUi_ToggleLanguageBar(int)" (?ImeUi_ToggleLanguageBar@@YAXH@Z)
1>SDKsound.obj : error LNK2019: unresolved external symbol _DirectSoundCreate8@12 referenced in function "public: long __thiscall CSoundManager::Initialize(struct HWND__ *,unsigned long)" (?Initialize@CSoundManager@@QAEJPAUHWND__@@K@Z)
All of them have a "Imm" tag, so what is it? I linked agains all needed librarys as I did in VSVC++ 2008. And at least there is a DirectSound one. I don't use it, I use XAudio2 but the Audiere lib I use for loading MP3s and OGGs, uses it for playback. I've added this to my library paths: $(DXSDK_DIR)\lib\x86 And this is all that I need... Isn't it?

Share this post


Link to post
Share on other sites
Advertisement
Oh.. I fixed this. I've added some unneeded DXUT files to my project. Removing them helped. :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!