[英]I built a C++ program on Windows, how can I compile an executable for MacOS?
I have built a little C++ program on Windows, and I'd like to share it with some people, but they are on MacOS.我在 Windows 上构建了一个小程序 C++,我想与一些人分享,但他们在 MacOS 上。 What tools can I use to compile an executable (like.exe for Windows) and share the project to them?我可以使用哪些工具来编译可执行文件(如 Windows 的 .exe)并将项目共享给他们? If needed, I have a MacOS VM.如果需要,我有一个 MacOS VM。
Build your sources with Xcode. Or try to run.exe with WINE ( https://www.winehq.org/ )使用 Xcode 构建您的源代码。或者尝试使用 WINE ( https://www.winehq.org/ ) 运行 run.exe
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.