2

I've write a c++ project using xcode on a mac.

What I need is to create a .exe file to run the project on windows in anothre pc (no virtualization).

I've read that xcode doesn't provide this service and so I've tried to compile it also in Eclipse (on mac) but I'm not able to get the .exe file.

Is it possible, on mac, to generate a .exe of a c++ project runnable on windows?

Thank you

Jack
  • 49
  • 1
  • 5
  • At least not that easily. You could try running some C++ compiler (for Windows! maybe MinGW or fully featured Visual Studio's compiler) in Wine or a virtual machine. I personally had some success with both methods and have always been compiling [my project](http://brute.zohosites.com) like this. – ForceBru Apr 03 '17 at 15:33
  • Looks like this question may be useful for you: http://stackoverflow.com/questions/23248989/clang-c-cross-compiler-generating-windows-executable-from-mac-os-x – AlexErofeev Apr 03 '17 at 16:07

1 Answers1

3

Yes, it is possible and it's known as cross-compilation. Besides building your own toolchain for doing this, you can use MinGW: Cross compiling with MinGW