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

来源:互联网 发布:php设为首页代码 编辑:程序博客网 时间:2024/05/18 06:23

再用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

0 0
原创粉丝点击