Cassio Pereira
Cassio Pereira

Reputation: 439

Visual studio 2015 debugging with older dlls

I'm trying to debug the sample application from OpenCV under Windows 10 - Visual Studio 2015.

I have already configured Visual Studio according to the OpenCV wiki and I can compile the application and run it fine.

The issue I'm having is when I try to debug the application. I'm getting that the program can't be started because MSVCP120D.dll is missing. I have already installed the Visual C++ 2013 redistributables from Microsoft, however they don't come with the debugging dlls.

The issue probably stems from the fact that the OpenCV version I'm using (D:\opencv\opencv\build\x64\vc12) was compiled with 2013. Is there a way to get the debugger version of this dll? Or start the debugger without it? Or am I stuck having to recompile OpenCV with 2015?

Thanks.

Upvotes: 0

Views: 357

Answers (1)

Gustavo Muenz
Gustavo Muenz

Reputation: 9552

Or am I stuck having to recompile OpenCV with 2015?

You probably are since it is a really bad idea to mix different runtime dlls. In your case you're mixing your compiled program (MSVC 2015) with the OpenCV dlls (MSVC 2013).

You should do either of these:

  1. Compile your program with MVSC 2013, which I believe will require you to install MSVC 2013 on your machine
  2. Compile OpenCV using MSVC 2015.

Note: This is probably gonna be better with programs compiled with MSVC 2015 and later compilers because of the Universal CRT

Upvotes: 1

Related Questions