Search code examples
c++dllcompiler-errorsexesfml

How can I share my SFML game with others without errors?


So, I finished a game in C ++ / SFML and I would like to send it to someone but when I send it there are errors: I tested the exe on another computer with SFML DLLs required and it shows me that libstdc ++ - 6.dll is missing, so I added it and I tried again and it tells me that there are still other dll missing, it is very embarrassing. How can I share my game without all those errors and missing DLLs?


Solution

  • You could use Dependency Walker (depends.exe) to find all the dll-s your application is using. It will still require some trial and error cycles to discover the ones you need, but at least you have somewhere to start from. You will most likely need the dlls provided by the compiler and the dlls of additional libraries you are using. You will most likely not need anything from the System32 folder.