[英]How to compile a C++ program in Xcode for Windows
I have a simple command line program in C++ that I have written in Xcode, that I want to compile so that it can run in windows. 我有一个用Xcode编写的C ++简单命令行程序,我想对其进行编译,使其可以在Windows中运行。 The only libraries I'm using are
#include <iostream>
and #include <stdlib.h>
我正在使用的唯一库是
#include <iostream>
和#include <stdlib.h>
Use a cross compiler. 使用交叉编译器。 I recommend GCC with homebrew.
我推荐自制的GCC。 https://github.com/mxcl/homebrew/wiki/Custom-GCC-and-cross-compilers
https://github.com/mxcl/homebrew/wiki/Custom-GCC-and-cross-compilers
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.