# Cpp sample program addingimages.cpp fails in runtime

**URL:** <https://forum.opencv.org/t/cpp-sample-program-addingimages-cpp-fails-in-runtime/12162>\
**Category:** C++\
**Tags:** programming\
**Created:** [February 28, 2023, 9:26am UTC](https://forum.opencv.org/t/cpp-sample-program-addingimages-cpp-fails-in-runtime/12162 "2023-02-28T09:26:35Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![cudawarped](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@cudawarped](https://forum.opencv.org/u/cudawarped)\
**Post date:** [February 28, 2023, 2:01pm UTC](https://forum.opencv.org/t/cpp-sample-program-addingimages-cpp-fails-in-runtime/12162/8 "2023-02-28T14:01:18Z")

</div>

Please read the last reply I gave you to your previous post

> [@VIsual Studio problems](https://forum.opencv.org/t/visual-studio-problems/12120/4):
>
> 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.

Please don’t create topics if you are not going spend the time to read the replies people make to them!

---

_[View the full topic](https://forum.opencv.org/t/cpp-sample-program-addingimages-cpp-fails-in-runtime/12162)._
