SFML community forums

Help => General => Topic started by: AzkaIsHere on August 09, 2018, 03:13:16 pm

Title: Friends can't open my games
Post by: AzkaIsHere on August 09, 2018, 03:13:16 pm
Hello guys, I need help on this, I've been trying for months to share my games with my friends but when they open the .exe they always get errors. I tried copying and pasting the sfml libs with the exe, but still noting, what should I do?
Title: Re: Friends can't open my games
Post by: achpile on August 09, 2018, 05:26:07 pm
at first you should provide errors text to get help  :)
Title: Re: Friends can't open my games
Post by: AzkaIsHere on August 10, 2018, 09:32:59 pm
here is the error that appears when they try to open the .exe, it is italian, I'll translate it to you:

The execution of the code cannot proceed because MSVCP140D.dll has not been found. To solve the problem, try to reinstall the program.
Title: Re: Friends can't open my games
Post by: dabbertorres on August 10, 2018, 09:59:35 pm
They need to download and install the Visual C++ Redistributable: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads (pick the one matching your version of Visual Studio)
Title: Re: Friends can't open my games
Post by: AzkaIsHere on August 10, 2018, 10:12:40 pm
I edited the program with visual studio 2017, I made my friend download the x86 for visual studio 2017 and it didn't work, then I made him install the x64 and it didn't work too... I don't know what's the problem
Title: Re: Friends can't open my games
Post by: Laurent on August 11, 2018, 12:50:59 pm
As far as I remember, the redistributables don't include the debug versions. But don't distribute debug builds of your game anyway ;)
Title: Re: Friends can't open my games
Post by: AzkaIsHere on August 11, 2018, 08:39:57 pm
? What do you mean? How do I fix this? I would like to share my games with other people...
Title: Re: Friends can't open my games
Post by: Laurent on August 12, 2018, 10:28:45 am
Select "Release" in Visual Studio when you build your game, not "Debug". And optionally, learn about the differences between these configurations ;)