奇怪的链接器错误链接到opencv ...“LNK1107:无效或损坏的文件:无法读取0x2E8” [英] Weird linker error linking to opencv... "LNK1107: invalid or corrupt file: cannot read at 0x2E8"

查看:1843
本文介绍了奇怪的链接器错误链接到opencv ...“LNK1107:无效或损坏的文件:无法读取0x2E8”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个OpenCV版本在几天前为我工作。我试图运行示例 grabcut.cpp 文件给出的OpenCV示例,所以我设置一个快速项目,通过 cpp file in。然后,我设置了所有的标准配置,并建立了这个错误。

This OpenCV build was working for me a few nights ago. I am trying to run the example grabcut.cpp file given with the OpenCV examples and so I set up a quick project and brough the cpp file in. Then, I set up all of the standard configurations and got this error on building.


error LNK1107: invalid or corrupt file: cannot read at 0x2E8   
opencv_calib3d231.dll


这是什么意思?

推荐答案

如果我不得不猜在该错误的文档) ,我想说你试图链接到DLL直接。

If I would have to guess (partially based on the documentation of that error), I'd say you're trying to link directly against the DLL.

您可能想要链接到相应的.lib文件。

You probably want to link against its corresponding .lib file.

这篇关于奇怪的链接器错误链接到opencv ...“LNK1107:无效或损坏的文件:无法读取0x2E8”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆