The application was unable to start correctly (0xc

2019-02-25 11:11发布

问题:

I've searched at a lot of places, asked a lot of people, but didn't found an answer to fix this issue..

I've just created a game in C++ with SFML in Visual Studio Community 2015. My project settings are set like they have to (followed this guide).

When I runu the game on my pc, it works totally fine. If it runs on a pc without Visual Studio 2015, it will crash and returns the following error:

The application was unable to start correctly (0xc00007b)

I've also downloaded Dependency Walker, to check the .exe on errors and it results a couuple of errors. They can be seen in this screenshot. Sorry for the dutch error after Error opening file. It says: The system can't find the given file.

These are the dll's I'm icluding in the root folder of my game:

I'm hoping you guys can help me out.. Thanks in advance!

回答1:

This error code rings a bell - have you installed the visual c++ redistributable package on the PCs where VS is not installed? You should be able to find the package in your VS folder (program files).