0xc000007b 运行 C++ 程序时出错 [英] 0xc000007b error in running a c++ made program

查看:103
本文介绍了0xc000007b 运行 C++ 程序时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题的标题可能重复,但我没有找到合适的解决方案.我用 VS2015(x64_release_mode) 和很多第三方库做了一个 c++ mfc 项目.我的程序在我的电脑(Windows 10、x64)上运行良好,但是当我在另一台电脑上运行它时,出现以下错误:

The title of this question may be repetitious, but I didn't find a suitable solution. I made a c++ mfc project with VS2015(x64_release_mode) and a lot of third party libraries. My program works fine on my computer (windows 10, x64), but when I run it on another computers, the below error comes up:

应用程序无法正确启动 0xc000007b."

"the application was unable to start correctly 0xc000007b."

我收集了所有依赖的第三方 dll,还安装了 MSVS_redistributable_2015_x64.

I gathered all dependant third party dlls and also I installed MSVS_redistributable_2015_x64.

我在它上面使用了dependancy_walker,但我有一些无意义的错误.我说废话是因为我有这些错误即使在我自己的计算机中(我的程序在其中运行),并且错误指向一些安装正确的 MS dll(我认为).
我什至安装了整个 Visual Studio 2015,但结果是一样的.有什么我遗漏的吗?

I used dependancy_walker on it and I've got some nonsense errors. I say nonsense because I've got those errors even in my own computer(which my program works in it) and the errors point to some MS dlls that are installed correctly (As I think).
I even installed whole visual studio 2015 but the result was the same. Is there anything I've missed?

附言我没有在我的程序中混合任何 32 位的东西.我所有的作品都在 64 位世界中.

P.S. I didn't mix any 32-bit thing with my program. All my works are in the 64-bit world.

提前致谢.

推荐答案

感谢大家的意见.我发现了真正的问题,所以我把它贴在这里与其他程序员分享.

Thank all you guys for your comments. I found the real problem so I post it here to share with other programmers.

我使用了 opencv_world340.dll,它是与 cuda 和 nvidia 库一起构建的,所以它需要一些名为nvcuda.dll"的 dll.我早些时候从我的电脑上捡到它,所以没有缺少 nvcuda.dll"错误,但是那个 dll 不应该在每台电脑上工作,并给出 0x000007b 错误.

I used opencv_world340.dll and it was built along with cuda and nvidia libraries, so it needs some dll named "nvcuda.dll". I picked it up from my computer earlier so there was no "missing nvcuda.dll" error, but that dll isn't supposed to work with every computer and gives the 0x000007b error.

我用来测试exe的另一台电脑没有显卡,所以没有安装nvidia,也没有兼容的nvcuda.dll.

the other computer I used for testing my exe, has no graphic card, so there was no nvidia installation and no compatible nvcuda.dll.

我终于在不涉及 nvidia 库的情况下构建了 opencv dll,问题已经在无 GPU 的计算机上解决了!

I finally built opencv dlls without involving nvidia libraries and the problem has been solved for the GPU-less computer !

这篇关于0xc000007b 运行 C++ 程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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