Linking error when compiling projects
-
Dear all, My current project was built on visual studio 2005. I ported it into visual studio 2010 and after several configurations, I got the only one left error while building
stdafx.obj : error LNK2019: unresolved external symbol _WTSSendMessageA@40 referenced in function _SendNotification
9>nafxcw.lib(afxglobals.obj) : error LNK2001: unresolved external symbol _IID_IWICImagingFactory
9>nafxcw.lib(afxtaskspane.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetIconSize@12
9>nafxcw.lib(afxvisualmanager.obj) : error LNK2019: unresolved external symbol __imp__ImageList_GetIconSize@12 referenced in function "public: virtual void __thiscall CMFCVisualManager::OnDrawTask(class CDC *,class CMFCTasksPaneTask *,class CImageList *,int,int)" (?OnDrawTask@CMFCVisualManager@@UAEXPAVCDC@@PAVCMFCTasksPaneTask@@PAVCImageList@@HH@Z)
9>nafxcw.lib(afxvisualmanagerofficexp.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetIconSize@12
9>nafxcw.lib(afxstatusbar.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetIconSize@12
9>nafxcw.lib(afxheaderctrl.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetIconSize@12
9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_ReplaceIcon@12 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneAnimation(int,struct _IMAGELIST *,unsigned int,int)" (?SetPaneAnimation@CMFCStatusBar@@QAEXHPAU_IMAGELIST@@IH@Z)
9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_GetIcon@12 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneAnimation(int,struct _IMAGELIST *,unsigned int,int)" (?SetPaneAnimation@CMFCStatusBar@@QAEXHPAU_IMAGELIST@@IH@Z)
9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_Create@20 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneAnimation(int,struct _IMAGELIST *,unsigned int,int)" (?SetPaneAnimation@CMFCStatusBar@@QAEXHPAU_IMAGELIST@@IH@Z)
9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_GetImageCount@4 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneAnimation(int,struct _IMAGELIST *,unsigned int,int)" (?SetPaneAnimation@CMFCStatusBar@@QAEXHPAU_IMAGELIST@@IH@Z)
9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_Destroy@4 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneAnimation(int,str -
Dear all, My current project was built on visual studio 2005. I ported it into visual studio 2010 and after several configurations, I got the only one left error while building
stdafx.obj : error LNK2019: unresolved external symbol _WTSSendMessageA@40 referenced in function _SendNotification
9>nafxcw.lib(afxglobals.obj) : error LNK2001: unresolved external symbol _IID_IWICImagingFactory
9>nafxcw.lib(afxtaskspane.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetIconSize@12
9>nafxcw.lib(afxvisualmanager.obj) : error LNK2019: unresolved external symbol __imp__ImageList_GetIconSize@12 referenced in function "public: virtual void __thiscall CMFCVisualManager::OnDrawTask(class CDC *,class CMFCTasksPaneTask *,class CImageList *,int,int)" (?OnDrawTask@CMFCVisualManager@@UAEXPAVCDC@@PAVCMFCTasksPaneTask@@PAVCImageList@@HH@Z)
9>nafxcw.lib(afxvisualmanagerofficexp.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetIconSize@12
9>nafxcw.lib(afxstatusbar.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetIconSize@12
9>nafxcw.lib(afxheaderctrl.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetIconSize@12
9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_ReplaceIcon@12 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneAnimation(int,struct _IMAGELIST *,unsigned int,int)" (?SetPaneAnimation@CMFCStatusBar@@QAEXHPAU_IMAGELIST@@IH@Z)
9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_GetIcon@12 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneAnimation(int,struct _IMAGELIST *,unsigned int,int)" (?SetPaneAnimation@CMFCStatusBar@@QAEXHPAU_IMAGELIST@@IH@Z)
9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_Create@20 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneAnimation(int,struct _IMAGELIST *,unsigned int,int)" (?SetPaneAnimation@CMFCStatusBar@@QAEXHPAU_IMAGELIST@@IH@Z)
9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_GetImageCount@4 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneAnimation(int,struct _IMAGELIST *,unsigned int,int)" (?SetPaneAnimation@CMFCStatusBar@@QAEXHPAU_IMAGELIST@@IH@Z)
9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_Destroy@4 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneAnimation(int,strCheck that all the required libraries are included in your project's Linker properties, and also that their directories are included in the VC++ Directories property.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
Check that all the required libraries are included in your project's Linker properties, and also that their directories are included in the VC++ Directories property.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
definitely !! after spending some hours googling, finally i figured out which lib i missed. Thank you very much :-D
Hello, Others are likely to encounter the same problem as you did. Providing the solution in addition to saying that you found it might be helpful to others (like me). It is always anoying find out someone had the exact same problem and says he solved it, but won't say how he did. Can you tell me what lib you were missing ? Redgis
-
Hello, Others are likely to encounter the same problem as you did. Providing the solution in addition to saying that you found it might be helpful to others (like me). It is always anoying find out someone had the exact same problem and says he solved it, but won't say how he did. Can you tell me what lib you were missing ? Redgis
A quick Google of the missing symbols gives the following missing library linkages: WTSSendMessage Wtsapi32.lib ImageList_GetIconSize Comctl32.lib IWICImagingFactory Windowscodecs.lib All of the other ImageList* missing symbols are found in Comctl32.
~Gene -- Life is not a spectator sport. I came to play. My Web Site, Blog & Wiki