在 Linux 中创建库或 DLL 并在 Windows 上使用它们
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7472502/
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
Create a library or DLL in Linux and using them on Windows
提问by Seb
I'm a Windows developer so I'm new to the Linux environment. I was wondering if anyone had any advice or general articles that could help me build a project on Linux and compile it into a library or DLL for use in a Windows environment.
我是 Windows 开发人员,所以我是 Linux 环境的新手。我想知道是否有人有任何建议或一般文章可以帮助我在 Linux 上构建项目并将其编译成库或 DLL 以在 Windows 环境中使用。
Any help is greatly appreciated.
任何帮助是极大的赞赏。
采纳答案by NPE
You could use a cross-compiler, or simply install Windows and the necessary build tools inside a virtual machine (e.g. using VirtualBox).
您可以使用交叉编译器,或者只是在虚拟机中安装 Windows 和必要的构建工具(例如使用VirtualBox)。