Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法从 linux / windows 的 mac 的 c++ 代码生成二进制文件?
目前我们想提供参考实现,我们没有 mac,但参与者有。因此出现了这个问题。
不可靠——而且,即使你可以,你也没有办法测试它们。要么找一个友好的人使用 Mac 来构建和测试你的应用程序,要么不要分发 Mac 版本。
如果你有 C++ 代码,你几乎可以从任何机器交叉编译到另一台机器。我想你可以从 mac 机器生成二进制文件到 linux/windows 机器。