您的位置:首页 > 其它

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

2016-10-24 17:58 579 查看
再用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.

转自:http://blog.csdn.net/chinabinlang/article/details/8542940
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐