# Visual studio 2022 cannot find opencv\_world4100d.dll when debugging

**URL:** <https://forum.opencv.org/t/visual-studio-2022-cannot-find-opencv-world4100d-dll-when-debugging/18313>\
**Category:** C++\
**Tags:** windows, build, programming\
**Created:** [July 19, 2024, 6:29pm UTC](https://forum.opencv.org/t/visual-studio-2022-cannot-find-opencv-world4100d-dll-when-debugging/18313 "2024-07-19T18:29:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![OleksiiP](https://avatars.discourse-cdn.com/v4/letter/o/df705f/32.png) [@OleksiiP](https://forum.opencv.org/u/OleksiiP)\
**Post date:** [July 19, 2024, 6:29pm UTC](https://forum.opencv.org/t/visual-studio-2022-cannot-find-opencv-world4100d-dll-when-debugging/18313/1 "2024-07-19T18:29:03Z")

</div>

My program works perfectly fine in debug mode without debugger, but when I want to use a debugger this error pops up. Any ideas on how to fix it?  
 ![Picture1](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/f/f6ea3b888653f3c57a07247e202c62bebda6d9e2.png)

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [July 19, 2024, 9:00pm UTC](https://forum.opencv.org/t/visual-studio-2022-cannot-find-opencv-world4100d-dll-when-debugging/18313/2 "2024-07-19T21:00:59Z")

</div>

your Visual Studio built your program to want that DLL. your program can’t find that DLL.

the `*d.dll` files are for _debug_ builds. those DLLs may not even exist.

if you don’t have those DLLs, you need to either build your own program as a release build (so VS will make it use the non-d DLL), or figure out how to tell Visual Studio that it needs to use the non-d DLLs even for your debug build.

you are not the first to have that issue. the solution has been written about countless times. I’m sure you’ll find one of those instances.

---

<div class="post-metadata">

**Author:** ![OleksiiP](https://avatars.discourse-cdn.com/v4/letter/o/df705f/32.png) [@OleksiiP](https://forum.opencv.org/u/OleksiiP)\
**Post date:** [July 19, 2024, 9:35pm UTC](https://forum.opencv.org/t/visual-studio-2022-cannot-find-opencv-world4100d-dll-when-debugging/18313/3 "2024-07-19T21:35:20Z")

</div>

I can build my project either in debug or release mode. The problem is I cannot use debugger as this error pops up. I’m also quite new to programming, so I’d be very grateful if you could explain it to me in more details. Thanks.
