c++ - 链接到 opencv 的奇怪链接器错误... "LNK1107: invalid or corrupt file: cannot read at 0x2E8"

标签 c++ visual-studio-2010 opencv

这个 OpenCV 构建在几天前对我有用。我正在尝试运行随 OpenCV 示例给出的示例 grabcut.cpp 文件,因此我设置了一个快速项目并引入了 cpp 文件。然后,我设置了所有标准配置并在构建时出现此错误。

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

这是什么意思?

最佳答案

如果我不得不猜测(部分基于 the documentation of that error ),我会说您正在尝试直接链接到 DLL。

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

关于c++ - 链接到 opencv 的奇怪链接器错误... "LNK1107: invalid or corrupt file: cannot read at 0x2E8",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9657040/

相关文章:

c++ - 将字符串转换为 char 指针可以指向的 char 数组/值的最有效方法是什么

visual-studio-2010 - Visual Studio 2010 调试 - 进程无法访问文件......因为它正被另一个进程使用

OpenCV 按位与+掩码

c++ - c中的自定义PCB闪烁灯

c++ - 散列多态类型的正确方法

c++ - win32 - .dll 中的对话框

python - 如何在python中缩短浮点结果

c# - MySqlDateTime 到 System.DateTime 转换

visual-studio-2010 - Azman 64 位使用 VS2010 : BadImageFormatException

python - Ubuntu 无法安装 OpenCV(libopencv_core 错误)