C ++ - 无法正确启动(0xc0150002) [英] C++ - unable to start correctly (0xc0150002)

查看:156
本文介绍了C ++ - 无法正确启动(0xc0150002)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过 Microsoft Visual C ++ 2010 Express 运行 OpenCV 应用程序,并获取以下消息:

I'm trying to run an OpenCV application through Microsoft Visual C++ 2010 Express, and get the following message:

>

如何解决这个问题?

感谢。

推荐答案

我同意Brandrew,这个问题很可能是由于在系统路径和可执行文件所在的文件夹中找不到的一些丢失的dll引起的。尝试在可执行文件附近放置以下DLL:

I agree with Brandrew, the problem is most likely caused by some missing dlls that can't be found neither on the system path nor in the folder where the executable is. Try putting the following DLLs nearby the executable:


  • Visual Studio C ++运行时(在VS2008中, \\ Program Files \Microsoft Visual Studio 9.0 \VC \redist\x86。)包括所有3个DLL文件以及清单文件。

  • 四个OpenCV dll cv210.dll,cvaux210.dll,cxcore210.dll和highgui210.dll或您的OpenCV版本有)

  • 如果仍然不工作,尝试调试VS运行时编译为Debug使用一组不同的dll,命名为msvcrt9d.dll,重要的部分是d)

或者,尝试将可执行文件加载到Dependency Walker( http://www.dependencywalker.com/ ),它应该指出缺少的dll为你。

Alternatively, try loading the executable into Dependency Walker ( http://www.dependencywalker.com/ ), it should point out the missing dlls for you.

这篇关于C ++ - 无法正确启动(0xc0150002)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆