简体   繁体   中英

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. The only libraries I'm using are #include <iostream> and #include <stdlib.h>

Use a cross compiler. I recommend GCC with homebrew. https://github.com/mxcl/homebrew/wiki/Custom-GCC-and-cross-compilers

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM