uafxcwd.lib(afxglobals.obj) : error LNK2001: 无法解析的外部符号 _IID_IWICImagingFactory

再用VC2010静态链接后,编译出现这个错误提示:

uafxcwd.lib(afxglobals.obj) : error LNK2001: 无法解析的外部符号 _IID_IWICImagingFactory。

 

解决方法:

在工程中添加链接 windowscodecs.lib。

 

原文:http://social.msdn.microsoft.com/Forums/zh-CN/vclanguage/thread/c9827214-c2d9-4261-a384-5b183917bf97

Looks like you are static linking MFC. a new member of type IWICImagingFactory* is introduced in AFX_GLOBAL_DATA, so you need to link windowscodecs.lib. There is anew Direct2D member too but the IID of Direct2D is taken care of by uuid.lib.



The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.

 

你可能感兴趣的:(VC++)