Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Weird linker error linking to opencv... "LNK1107: invalid or corrupt file: cannot read at 0x2E8"

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

What does this mean?

like image 491
Jim Avatar asked Mar 11 '12 17:03

Jim


1 Answers

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.

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

like image 159
Bart Avatar answered Nov 13 '22 15:11

Bart