opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号

然__980 2013-06-08 07:08:55
不知道有没有谁碰到过这个问题啊,我是用Opencv VS2010 编写静态执行程序时遇到的问题,求高手解答啊!


opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "public: __thiscall Imf::Chromaticities::Chromaticities(class Imath::Vec2<float> const &,class Imath::Vec2<float> const &,class Imath::Vec2<float> const &,class Imath::Vec2<float> const &)" (??0Chromaticities@Imf@@QAE@ABV?$Vec2@M@Imath@@000@Z),该符号在函数 "public: __thiscall cv::ExrDecoder::ExrDecoder(void)" (??0ExrDecoder@cv@@QAE@XZ) 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "public: struct Imf::Channel const * __thiscall Imf::ChannelList::findChannel(char const * const)const " (?findChannel@ChannelList@Imf@@QBEPBUChannel@2@QBD@Z),该符号在函数 "public: virtual bool __thiscall cv::ExrDecoder::readHeader(void)" (?readHeader@ExrDecoder@cv@@UAE_NXZ) 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "public: class Imf::ChannelList const & __thiscall Imf::Header::channels(void)const " (?channels@Header@Imf@@QBEABVChannelList@2@XZ),该符号在函数 "public: virtual bool __thiscall cv::ExrDecoder::readHeader(void)" (?readHeader@ExrDecoder@cv@@UAE_NXZ) 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "struct Imf::Chromaticities const & __cdecl Imf::chromaticities(class Imf::Header const &)" (?chromaticities@Imf@@YAABUChromaticities@1@ABVHeader@1@@Z),该符号在函数 "public: virtual bool __thiscall cv::ExrDecoder::readHeader(void)" (?readHeader@ExrDecoder@cv@@UAE_NXZ) 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "bool __cdecl Imf::hasChromaticities(class Imf::Header const &)" (?hasChromaticities@Imf@@YA_NABVHeader@1@@Z),该符号在函数 "public: virtual bool __thiscall cv::ExrDecoder::readHeader(void)" (?readHeader@ExrDecoder@cv@@UAE_NXZ) 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "public: class Imath::Box<class Imath::Vec2<int> > const & __thiscall Imf::Header::dataWindow(void)const " (?dataWindow@Header@Imf@@QBEABV?$Box@V?$Vec2@H@Imath@@@Imath@@XZ),该符号在函数 "public: virtual bool __thiscall cv::ExrDecoder::readHeader(void)" (?readHeader@ExrDecoder@cv@@UAE_NXZ) 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "public: class Imf::Header const & __thiscall Imf::InputFile::header(void)const " (?header@InputFile@Imf@@QBEABVHeader@2@XZ),该符号在函数 "public: virtual bool __thiscall cv::ExrDecoder::readHeader(void)" (?readHeader@ExrDecoder@cv@@UAE_NXZ) 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "public: __thiscall Imf::InputFile::InputFile(char const * const,int)" (??0InputFile@Imf@@QAE@QBDH@Z),该符号在函数 "public: virtual bool __thiscall cv::ExrDecoder::readHeader(void)" (?readHeader@ExrDecoder@cv@@UAE_NXZ) 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "int __cdecl Imf::globalThreadCount(void)" (?globalThreadCount@Imf@@YAHXZ),该符号在函数 "public: virtual bool __thiscall cv::ExrDecoder::readHeader(void)" (?readHeader@ExrDecoder@cv@@UAE_NXZ) 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "public: void __thiscall Imf::InputFile::readPixels(int,int)" (?readPixels@InputFile@Imf@@QAEXHH@Z),该符号在函数 "public: virtual bool __thiscall cv::ExrDecoder::readData(class cv::Mat &)" (?readData@ExrDecoder@cv@@UAE_NAAVMat@2@@Z) 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "public: void __thiscall Imf::InputFile::setFrameBuffer(class Imf::FrameBuffer const &)" (?setFrameBuffer@InputFile@Imf@@QAEXABVFrameBuffer@2@@Z),该符号在函数 "public: virtual bool __thiscall cv::ExrDecoder::readData(class cv::Mat &)" (?readData@ExrDecoder@cv@@UAE_NAAVMat@2@@Z) 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "public: void __thiscall Imf::FrameBuffer::insert(char const * const,struct Imf::Slice const &)" (?insert@FrameBuffer@Imf@@QAEXQBDABUSlice@2@@Z),该符号在函数 "public: virtual bool __thiscall cv::ExrDecoder::readData(class cv::Mat &)" (?readData@ExrDecoder@cv@@UAE_NAAVMat@2@@Z) 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "public: __thiscall Imf::Slice::Slice(enum Imf::PixelType,char *,unsigned int,unsigned int,int,int,double,bool,bool)" (??0Slice@Imf@@QAE@W4PixelType@1@PADIIHHN_N2@Z),该符号在函数 "public: virtual bool __thiscall cv::ExrDecoder::readData(class cv::Mat &)" (?readData@ExrDecoder@cv@@UAE_NAAVMat@2@@Z) 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "public: __thiscall Imf::Header::~Header(void)" (??1Header@Imf@@QAE@XZ),该符号在函数 __catch$?write@ExrEncoder@cv@@UAE_NABVMat@2@ABV?$vector@HV?$allocator@H@std@@@std@@@Z$0 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "public: virtual __thiscall Imf::OutputFile::~OutputFile(void)" (??1OutputFile@Imf@@UAE@XZ),该符号在函数 __catch$?write@ExrEncoder@cv@@UAE_NABVMat@2@ABV?$vector@HV?$allocator@H@std@@@std@@@Z$0 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "public: void __thiscall Imf::OutputFile::writePixels(int)" (?writePixels@OutputFile@Imf@@QAEXH@Z),该符号在函数 "public: virtual bool __thiscall cv::ExrEncoder::write(class cv::Mat const &,class std::vector<int,class std::allocator<int> > const &)" (?write@ExrEncoder@cv@@UAE_NABVMat@2@ABV?$vector@HV?$allocator@H@std@@@std@@@Z) 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "public: void __thiscall Imf::OutputFile::setFrameBuffer(class Imf::FrameBuffer const &)" (?setFrameBuffer@OutputFile@Imf@@QAEXABVFrameBuffer@2@@Z),该符号在函数 "public: virtual bool __thiscall cv::ExrEncoder::write(class cv::Mat const &,class std::vector<int,class std::allocator<int> > const &)" (?write@ExrEncoder@cv@@UAE_NABVMat@2@ABV?$vector@HV?$allocator@H@std@@@std@@@Z) 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "public: __thiscall Imf::OutputFile::OutputFile(char const * const,class Imf::Header const &,int)" (??0OutputFile@Imf@@QAE@QBDABVHeader@1@H@Z),该符号在函数 "public: virtual bool __thiscall cv::ExrEncoder::write(class cv::Mat const &,class std::vector<int,class std::allocator<int> > const &)" (?write@ExrEncoder@cv@@UAE_NABVMat@2@ABV?$vector@HV?$allocator@H@std@@@std@@@Z) 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "public: void __thiscall Imf::ChannelList::insert(char const * const,struct Imf::Channel const &)" (?insert@ChannelList@Imf@@QAEXQBDABUChannel@2@@Z),该符号在函数 "public: virtual bool __thiscall cv::ExrEncoder::write(class cv::Mat const &,class std::vector<int,class std::allocator<int> > const &)" (?write@ExrEncoder@cv@@UAE_NABVMat@2@ABV?$vector@HV?$allocator@H@std@@@std@@@Z) 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "public: class Imf::ChannelList & __thiscall Imf::Header::channels(void)" (?channels@Header@Imf@@QAEAAVChannelList@2@XZ),该符号在函数 "public: virtual bool __thiscall cv::ExrEncoder::write(class cv::Mat const &,class std::vector<int,class std::allocator<int> > const &)" (?write@ExrEncoder@cv@@UAE_NABVMat@2@ABV?$vector@HV?$allocator@H@std@@@std@@@Z) 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "public: __thiscall Imf::Channel::Channel(enum Imf::PixelType,int,int,bool)" (??0Channel@Imf@@QAE@W4PixelType@1@HH_N@Z),该符号在函数 "public: virtual bool __thiscall cv::ExrEncoder::write(class cv::Mat const &,class std::vector<int,class std::allocator<int> > const &)" (?write@ExrEncoder@cv@@UAE_NABVMat@2@ABV?$vector@HV?$allocator@H@std@@@std@@@Z) 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "public: __thiscall Imf::Header::Header(int,int,float,class Imath::Vec2<float> const &,float,enum Imf::LineOrder,enum Imf::Compression)" (??0Header@Imf@@QAE@HHMABV?$Vec2@M@Imath@@MW4LineOrder@1@W4Compression@1@@Z),该符号在函数 "public: virtual bool __thiscall cv::ExrEncoder::write(class cv::Mat const &,class std::vector<int,class std::allocator<int> > const &)" (?write@ExrEncoder@cv@@UAE_NABVMat@2@ABV?$vector@HV?$allocator@H@std@@@std@@@Z) 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2019: 无法解析的外部符号 "private: static short __cdecl half::convert(int)" (?convert@half@@CAFH@Z),该符号在函数 "public: __thiscall half::half(float)" (??0half@@QAE@M@Z) 中被引用
1>opencv_highgui243d.lib(grfmt_exr.obj) : error LNK2001: 无法解析的外部符号 "private: static unsigned short const * const half::_eLut" (?_eLut@half@@0QBGB)
1>libtiffd.lib(tif_win32.obj) : error LNK2019: 无法解析的外部符号 __imp__MessageBoxA@16,该符号在函数 _Win32WarningHandler 中被引用
1>libtiffd.lib(tif_win32.obj) : error LNK2019: 无法解析的外部符号 __imp__GetFocus@0,该符号在函数 _Win32WarningHandler 中被引用
1>D:\Projects\VS2010\ImageCompare\Debug\ImageCompare.exe : fatal error LNK1120: 26 个无法解析的外部命令
...全文
6045 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
lanlangxt 2014-10-11
  • 打赏
  • 举报
回复
引用 2 楼 zhao4zhong1 的回复:
VC6: 工程、设置、C/C++、分类:Preprocessor、附加包含路径:填写附加头文件所在目录 逗号间隔多项 工程、设置、Link、分类:Input、附加库路径:填写附加依赖库所在目录 分号间隔多项 工程、设置、Link、分类:Input、对象/库模块:填写附加依赖库的名字.lib 空格间隔多项 VS20xx: 项目、属性、C/C++、附加包含目录:填写附加头文件所在目录 分号间隔多项 项目、属性、链接器、常规、附加库目录:填写附加依赖库所在目录 分号间隔多项 项目、属性、链接器、输入、附加依赖项:填写附加依赖库的名字.lib 空格或分号间隔多项
详细。
lanlangxt 2014-10-11
  • 打赏
  • 举报
回复
引用 5 楼 zhao4zhong1 的回复:
VS20xx: 项目、属性、链接器、常规、附加库目录:填写附加依赖库所在目录 分号间隔多项 项目、属性、链接器、输入、附加依赖项:填写附加依赖库的名字.lib 空格或分号间隔多项
用这个方法解决了,赞一个。
水木之曰 2014-09-20
  • 打赏
  • 举报
回复

把这里面的库添加进去就行了
Wills_AceKiller 2013-12-10
  • 打赏
  • 举报
回复
楼主什么办法解决的,求指点啊,我这纠结好几天了
yuhan0406 2013-12-02
  • 打赏
  • 举报
回复
添加哪个库文件
然__980 2013-11-21
  • 打赏
  • 举报
回复
引用 8 楼 luxj 的回复:
我也遇到了同样的问题,不知楼主解决了吗?
解决了,实在不能链接的,直接把库文件拷贝到程序的同目录下,就行了
smilingeyes 2013-11-21
  • 打赏
  • 举报
回复
附加依赖项添加IlmImfd.lib
luxj 2013-10-17
  • 打赏
  • 举报
回复
我也遇到了同样的问题,不知楼主解决了吗?
然__980 2013-06-19
  • 打赏
  • 举报
回复
引用 4 楼 taikonglaike 的回复:
补充::现在我用的是VS2010编译器
你好,你可以试着在代码中加入两行代码 #pragma comment( lib, "vfw32.lib" ) #pragma comment( lib, "comctl32.lib" ) 这两个是与win32 有关的系统库 我也很想知道你的 #progma 的代码,希望不要介意让我参考下哈
赵4老师 2013-06-09
  • 打赏
  • 举报
回复
VC6: 工程、设置、C/C++、分类:Preprocessor、附加包含路径:填写附加头文件所在目录 逗号间隔多项 工程、设置、Link、分类:Input、附加库路径:填写附加依赖库所在目录 分号间隔多项 工程、设置、Link、分类:Input、对象/库模块:填写附加依赖库的名字.lib 空格间隔多项 VS20xx: 项目、属性、C/C++、附加包含目录:填写附加头文件所在目录 分号间隔多项 项目、属性、链接器、常规、附加库目录:填写附加依赖库所在目录 分号间隔多项 项目、属性、链接器、输入、附加依赖项:填写附加依赖库的名字.lib 空格或分号间隔多项
sweet_bird 2013-06-09
  • 打赏
  • 举报
回复
我的也是,不知道opencv静态编译这个东东到底能能不实现呀
AndyStevens 2013-06-09
  • 打赏
  • 举报
回复
链接不到库 , 按赵老师的方法 配置库链接路径
赵4老师 2013-06-09
  • 打赏
  • 举报
回复
VS20xx: 项目、属性、链接器、常规、附加库目录:填写附加依赖库所在目录 分号间隔多项 项目、属性、链接器、输入、附加依赖项:填写附加依赖库的名字.lib 空格或分号间隔多项
sweet_bird 2013-06-09
  • 打赏
  • 举报
回复
补充::现在我用的是VS2010编译器
sweet_bird 2013-06-09
  • 打赏
  • 举报
回复
opencv_highgui245d.lib(window_w32.obj) : error LNK2019: 无法解析的外部符号 _cvError,该符号在函数 "double __cdecl cvGetModeWindow_W32(char const *)" (?cvGetModeWindow_W32@@YANPBD@Z) 中被引用 1>opencv_highgui245d.lib(utils.obj) : error LNK2001: 无法解析的外部符号 _cvError 1>opencv_highgui245d.lib(window_w32.obj) : error LNK2019: 无法解析的外部符号 _cvGetErrStatus,该符号在函数 _cvNamedWindow 中被引用 1>opencv_highgui245d.lib(utils.obj) : error LNK2001: 无法解析的外部符号 _cvGetErrStatus 1>opencv_highgui245d.lib(window_w32.obj) : error LNK2019: 无法解析的外部符号 _cvAlloc,该符号在函数 _cvNamedWindow 中被引用 1>opencv_highgui245d.lib(window_w32.obj) : error LNK2019: 无法解析的外部符号 _cvInitMatHeader,该符号在函数 _cvShowImage 中被引用 1>opencv_highgui245d.lib(window_w32.obj) : error LNK2019: 无法解析的外部符号 _cvGetMat,该符号在函数 _cvShowImage 中被引用 1>opencv_highgui245d.lib(utils.obj) : error LNK2001: 无法解析的外部符号 _cvGetMat 1>opencv_highgui245d.lib(window_w32.obj) : error LNK2019: 无法解析的外部符号 _cvFree_,该符号在函数 "void __cdecl icvRemoveWindow(struct CvWindow *)" (?icvRemoveWindow@@YAXPAUCvWindow@@@Z) 中被引用 1>opencv_highgui245d.lib(utils.obj) : error LNK2019: 无法解析的外部符号 _cvReleaseMat,该符号在函数 _cvConvertImage 中被引用 1>opencv_highgui245d.lib(utils.obj) : error LNK2019: 无法解析的外部符号 _cvCopy,该符号在函数 _cvConvertImage 中被引用 1>opencv_highgui245d.lib(utils.obj) : error LNK2019: 无法解析的外部符号 _cvFlip,该符号在函数 _cvConvertImage 中被引用 1>opencv_highgui245d.lib(utils.obj) : error LNK2019: 无法解析的外部符号 _cvConvertScale,该符号在函数 _cvConvertImage 中被引用 1>opencv_highgui245d.lib(utils.obj) : error LNK2019: 无法解析的外部符号 _cvCreateMat,该符号在函数 _cvConvertImage 中被引用 1>C:\Users\LDW\documents\visual studio 2010\Projects\MainTest\Debug\MainTest.exe : fatal error LNK1120: 11 个无法解析的外部命令 我把VS2008卸载了,我以为是编译器的问题,现在静态编译又出现了这些链接错误,这些是什么原因呢?怎么解决呢?

70,037

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧