再用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.youkuaiyun.com/chinabinlang/article/details/8542940
本文解决了一个在使用VC2010进行静态链接MFC时遇到的编译错误:无法解析的外部符号_IID_IWICImagingFactory。通过在工程中引入windowscodecs.lib库成功解决了该问题。
1万+

被折叠的 条评论
为什么被折叠?



