VIsual Studio problems

if I use dll builld of program I get following error -

Severity Code Description Project File Line Suppression State
Error LNK1107 invalid or corrupt file: cannot read at 0x3D0 ConsoleApplication1 C:\Users\Raivo\opencv-4.7.0\build\bin\Debug\opencv_calib3d470d.dll 1

I build opencv package with Visual Studio twice and got same