question

Filip-2434 avatar image
0 Votes"
Filip-2434 asked Filip-2434 commented

C++ opencv invalid or corrupted file 0x3a0 opencv_world451.dll

Hello Everybody.

I still don't understand why it does't work.
I tried setup open_cv x64 to my c++ project but it show still this error.

85923-a.png

I set the debug to x64 I add all libraries and include path and also binary files.
What is wrong?
Because i setup it on the other project several days ago and it work and now it suddendly doesn't word. When I copy the old project and use it as new it work but creating ne not.
Can somebody help me?
Thanks for answare.


c++
a.png (7.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Viorel-1 avatar image
0 Votes"
Viorel-1 answered Filip-2434 commented

Probably you must specify the .lib file instead of .dll (in settings related to linker).

Where did you enter the opencv_world451.dll name?

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

In Properies-Linker-Input

0 Votes 0 ·

@Filip-2434

As far as I'm concerned, you should link against the corresponding .lib file instead of linking against the .dll file directly.

0 Votes 0 ·

Hello @JeanineZhang-MSFT
Yes it work now when i link between the .lib.
But I don't understand why it dons't work when I link it betweek .dll file?
Thanks for answare.

0 Votes 0 ·