简体   繁体   English

我在 Windows 上构建了一个 C++ 程序,如何为 MacOS 编译可执行文件?

[英]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.

相关问题 如何将Windows C ++程序的输出重定向到另一个可执行文件? - How can I redirect output of a Windows C++ program to another executable? 如何创建单个 vim 正则表达式 map 来编译和运行 c++ 程序在 Z0F4137ED1502B58545D6083AA2 中 - How can I Create single vim regular expression map to compile and run c++ program in windows 如何将 c++ 程序编译为 32 位可执行文件而不是 64 位 - How do I compile a c++ program into a 32-bit executable instead of 64-bit 如何使我的C ++程序在Unix上编译? - How can I get my C++ program to compile on Unix? 如何在Windows上为ARM编译C ++库 - How can i compile a c++ library for ARM on windows 如何将C / C ++编译为CP / M-86可执行文件(CMD) - How can I compile C/C++ to a CP/M-86 executable (CMD) 如何使用其他C ++程序编译C ++代码? - How can I compile C++ code using another C++ program? 如何直接在Android设备上以可执行文件的形式运行简单的c ++程序? - How can I run a simple c++ program on android device directly as an executable? 如何编写可在Linux和Windows中轻松编译的C ++程序? - How do I write a C++ program that will easily compile in Linux and Windows? 如何从 Cygwin 下构建的 C++ 程序链接到 DLL? - How can I link to DLLs from a C++ program built under Cygwin?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM