0xc000007b error in running a c++ made program

0

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:

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

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

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?

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

Thanks in advance.

c++
windows
mfc
asked on Stack Overflow Jul 23, 2018 by Meisam • edited Jul 23, 2018 by Jabberwocky

1 Answer

1

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

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.

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

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

answered on Stack Overflow Jul 24, 2018 by Meisam

User contributions licensed under CC BY-SA 3.0