windows 将 .DLL 转换为 .SO
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1641585/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Converting .DLL to .SO
提问by Sachin Chourasiya
Can any one of you help me in converting an windows dll file in a .so file.
你们中的任何人都可以帮助我将 Windows dll 文件转换为 .so 文件。
回答by Tim Post
You might try re-compiling the source code to the dll to a shared object. Thismay help you get started, after ensuring the code is indeed portable.
您可以尝试将 dll 的源代码重新编译为共享对象。在确保代码确实可移植后,这可能会帮助您入门。
Edit:
编辑:
Here is yet another linkthat can help guide you through the process of creating a shared library using GCC and other parts of the GNU tool chain. This linkwill help you to discover pitfalls that other people had when undertaking a project similar to this.
这是另一个链接,可以帮助您完成使用 GCC 和 GNU 工具链的其他部分创建共享库的过程。此链接将帮助您发现其他人在进行类似项目时遇到的陷阱。
There is only so much help that can be provided for such a specific task, especially with so many unknowns. If you elect to provide more information in your question, please leave a comment.
对于这样一个特定的任务,只能提供这么多帮助,尤其是在有这么多未知数的情况下。如果您选择在问题中提供更多信息,请发表评论。
NB: I'm pulling these links right out of Google.
注意:我正在从 Google 中提取这些链接。
回答by Andrew Keith
You need to recompile again into an .so file.
您需要再次重新编译为 .so 文件。