解决以下外部元素时遇到问题:_IID_iwicimagingfactory [英] Having problem resolving the following external element : _IID_iwicimagingfactory
本文介绍了解决以下外部元素时遇到问题:_IID_iwicimagingfactory的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在使用CCmdTarget链接我的OLE / MFC程序时,我有以下错误消息:
In linking my OLE/MFC program using CCmdTarget I have the following error message:
nafxcw.lib(afxglobals.obj) : error LNK2001: unresolved external symbol _IID_IWICImagingFactory
main.exe : fatal error LNK1120: 1 unresolved externals
我在Windows 7专业版上使用VS 10
我尝试了什么:
我隐含地指定了要包含的以下库:
I am using VS 10 on Windows 7 professional
What I have tried:
I implicitly specified the following libraries to be included:
#pragma comment(lib, "ole32.lib")
#pragma comment(lib, "user32.lib")
#pragma comment(lib, "comsuppw.lib")
什么库我错过了吗?
谢谢
What library am I missing?
Thank you
推荐答案
我在源代码中添加了以下库指令它解决了缺少外部符号
I added the following library directive to my source code and it resolved the missing external Symbol
#pragma comment(lib, "windowscodecs.lib")
从Google看起来像:C:\Program Files \ MicroSoft SDKs\Windows\v7.0A\Lib\ windowscodecs.lib
检查: c ++ - visual studio构建错误:未解析的外部符号_IID_IWICImagingFactory(MFC静态库) - 堆栈溢出 [ ^ ]
和:Mr。赖泰宇:如何解决错误LNK2001:未解析的外部符号_IID_IWICImagingFactory? [ ^ ]
From Google it looks like : C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib\ windowscodecs.lib
Check this: c++ - visual studio building error: unresolved external symbol _IID_IWICImagingFactory (MFC static lib) - Stack Overflow[^]
and: Mr. Lai Tai-Yu: How to solve to error LNK2001: unresolved external symbol _IID_IWICImagingFactory?[^]
这篇关于解决以下外部元素时遇到问题:_IID_iwicimagingfactory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文