Visual studio 2015 debugging with older dlls

Cassio Pereira

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.

Edison Gustavo Muenz

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

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Visual Studio 2015 Debugging vs Not Debugging Views

From Dev

Visual Studio 2015 Debugging not stopping at breakpoints

From Dev

Visual Studio 2015 locks DLL during debugging

From Dev

Visual studio 2015 not responding while debugging

From Dev

Is there Visual Studio 2015 Debugging step skipping?

From Dev

Visual Studio 2015 debugging annoying boxes

From Dev

Debugging with specific browser in Visual Studio 2015 not possible anymore?

From Dev

Debugging Typemock test case in Visual Studio 2015 throws TypeMockException

From Dev

Classic asp "Application debugging is disabled" in visual studio 2015

From Dev

Visual Studio 2015 Debugging: Can't expand local variables?

From Dev

Visual Studio 2015 diagnostics tool does not support current debugging configuration

From Dev

Debugging Cordova App (android) with Visual Studio 2015 New Emulator

From Dev

Visual Studio 2015 does not hit breakpoint when debugging WF workflow

From Dev

Debugging with specific browser in Visual Studio 2015 not possible anymore?

From Dev

console debugging visual studio 2015, like Xcode feature

From Dev

Visual Studio 2015 moves undocked windows during debugging

From Dev

Debugging Appcelerator Windows Phone App with Visual Studio 2015

From Dev

Stop debugging in Visual Studio 2015 after the browser is closed

From Dev

Query-string in ASP.NET in Visual Studio 2015 for debugging?

From Dev

How can a visual studio extension target both 2013 and 2015 while referencing TFS client dlls

From Dev

Missing Microsoft.TeamFoundation.Build.Client and other DLLs in Visual Studio 2015

From Dev

debugging javascript in Visual Studio Web Express 2013 or Visual Studio 2015 Community

From Dev

How can I make older color schemes compatible with Visual Studio 2015?

From Dev

Older version of Visual Studio Extension

From Dev

Dynamic debugging with visual studio

From Dev

Visual Studio debugging WebApi

From Dev

Visual Studio debugging WebApi

From Dev

Dynamic debugging with visual studio

From Dev

Debugging Visual Studio

Related Related

  1. 1

    Visual Studio 2015 Debugging vs Not Debugging Views

  2. 2

    Visual Studio 2015 Debugging not stopping at breakpoints

  3. 3

    Visual Studio 2015 locks DLL during debugging

  4. 4

    Visual studio 2015 not responding while debugging

  5. 5

    Is there Visual Studio 2015 Debugging step skipping?

  6. 6

    Visual Studio 2015 debugging annoying boxes

  7. 7

    Debugging with specific browser in Visual Studio 2015 not possible anymore?

  8. 8

    Debugging Typemock test case in Visual Studio 2015 throws TypeMockException

  9. 9

    Classic asp "Application debugging is disabled" in visual studio 2015

  10. 10

    Visual Studio 2015 Debugging: Can't expand local variables?

  11. 11

    Visual Studio 2015 diagnostics tool does not support current debugging configuration

  12. 12

    Debugging Cordova App (android) with Visual Studio 2015 New Emulator

  13. 13

    Visual Studio 2015 does not hit breakpoint when debugging WF workflow

  14. 14

    Debugging with specific browser in Visual Studio 2015 not possible anymore?

  15. 15

    console debugging visual studio 2015, like Xcode feature

  16. 16

    Visual Studio 2015 moves undocked windows during debugging

  17. 17

    Debugging Appcelerator Windows Phone App with Visual Studio 2015

  18. 18

    Stop debugging in Visual Studio 2015 after the browser is closed

  19. 19

    Query-string in ASP.NET in Visual Studio 2015 for debugging?

  20. 20

    How can a visual studio extension target both 2013 and 2015 while referencing TFS client dlls

  21. 21

    Missing Microsoft.TeamFoundation.Build.Client and other DLLs in Visual Studio 2015

  22. 22

    debugging javascript in Visual Studio Web Express 2013 or Visual Studio 2015 Community

  23. 23

    How can I make older color schemes compatible with Visual Studio 2015?

  24. 24

    Older version of Visual Studio Extension

  25. 25

    Dynamic debugging with visual studio

  26. 26

    Visual Studio debugging WebApi

  27. 27

    Visual Studio debugging WebApi

  28. 28

    Dynamic debugging with visual studio

  29. 29

    Debugging Visual Studio

HotTag

Archive