Getting an SFML program to work on different computers

-1

I've made an application designed for 32-bit Windows using Visual Studio 2017

It uses VC++ (SFML, Windows.h and basic C++).

I can't get it to work on another PC (I mean outside of my PC, on any other PC), it throws errors like missing .dlls, but when I add those missing .dlls to the folder where .exe is, it throws an error

The application was unable to start correctly (0xc000007b)

I'm linking the libraries dynamically, they're set up correctly.

I've tried running as administrator, it sadly didn't work.

Important thing: I'm running a 64-bit Windows 10, it works on my PC, but it throws the error on a friend's PC, which is 64-bit Windows 8.1 From what I've read a while ago someone said that this error occurs when you're trying to run 32-bit app on a 64-bit OS, but I don't know how to fix that.

The includes for the program are as follows:

#include<SFML/Graphics.hpp>
#include<SFML/Audio.hpp>
#include<SFML/Window.hpp>
#include<SFML/Main.hpp>
#include<SFML/System.hpp>

#include<Windows.h>
#include<iostream>
#include<math.h>
#include<fstream>
#include<time.h>
#include<stdio.h>
#include<stdlib.h>
#include<string>
#include<fileapi.h>
c++
opengl
sfml
asked on Stack Overflow Feb 18, 2019 by Yee7i • edited Feb 20, 2019 by halfer

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0