如何与他人分享我的 SFML 游戏而不会出错? [英] How can I share my SFML game with others without errors?

查看:34
本文介绍了如何与他人分享我的 SFML 游戏而不会出错?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我用 C++/SFML 完成了一个游戏,我想将它发送给某人,但是当我发送它时出现错误:我在另一台需要 SFML DLL 的计算机上测试了 exe,它告诉我 libstdc++ - 6.dll丢失了,所以我添加了它,我又试了一次,它告诉我还有其他的dll丢失,很尴尬.如何在没有所有这些错误和缺少 DLL 的情况下共享我的游戏?

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?

推荐答案

你可以使用 Dependency Walker (depends.exe) 找到您的应用程序正在使用的所有 dll-s.它仍然需要一些反复试验才能发现您需要的东西,但至少您有地方可以开始.您很可能需要编译器提供的 dll 以及您正在使用的其他库的 dll.您很可能不需要 System32 文件夹中的任何内容.

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.

这篇关于如何与他人分享我的 SFML 游戏而不会出错?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆