VIsual Studio problems

Are you adding C:\Users\Raivo\opencv-4.7.0\build\bin\Debug\opencv_calib3d470d.dll to

Properties->Linker->Input->Additional Dependencies?

instead of C:\Users\Raivo\opencv-4.7.0\build\lib\Debug\opencv_calib3d470d.dll?

If so that’s your problem, you need to add the .lib to the linker for compilation and the .dll to your system/user path for runtime.