Visual Studio 15: 0xc000007b after adding existing files to Project

-1

I am trying to make an application with OpenGL and GStreamer. I have a couple of files linking to GStreamer-libraries, but for now, they are not included to the main source file in any way. The program compiles just fine, but upon running, I get the error message

The application was unable to start correctly (0xc000007b).

I got no more information about the error.

But when excluding the GStreamer-related files from the project, while leaving the include- and library-directories in the property page untouched, the code compiles and runs without problems.

I am building for the Win32 platform and have checked that I link to the correct versions of the GStreamer libraries.

Furhermore, when trying to run a build for x64 (also linking properly, I believe), I get the exact same error, even when the files are excluded from the project.

Could anyone tell what's wrong from this sparse information, or at the very least explain why the application won't run when I add files that are not used?

I may give more information on demand, but right now, I really don't know what is relevant.

c++
visual-studio
opengl
gstreamer
asked on Stack Overflow Jul 6, 2016 by TheVaffel

1 Answer

1

As suggested by PaulMcKenzie, it turned out that Windows searched through the directories in PATH and took the first dll's that fit, even though they were built for a 64-bit platform.

The cause of the error when I run with x64 turns out to have been that some other dll's, that I had downloaded from a public GitHub repository, were built for 32-bit software.

answered on Stack Overflow Jul 6, 2016 by TheVaffel

User contributions licensed under CC BY-SA 3.0