这个 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/