0

What argument do I need to use to export an executable file that will run on Mac from my Windows machine?

gcc *.c -o Program.? -?

*? = what goes here?

bgroenks
  • 1,859
  • 5
  • 34
  • 63
  • Define: "run on Mac from my Windows machine" Are you trying to cross-compile? – Mysticial Dec 23 '11 at 18:07
  • 1
    Possible duplicate of [http://stackoverflow.com/questions/693952/how-to-compile-for-os-x-in-linux-or-windows](http://stackoverflow.com/questions/693952/how-to-compile-for-os-x-in-linux-or-windows) – pstrjds Dec 23 '11 at 18:08
  • 1
    You cannot do that directly, you need a cross-compiler setup. And it is far from being obvious to set up :/ – fge Dec 23 '11 at 18:08
  • The Apple gcc (or clang/llvm) will not produce any Windows executables at all, if you want to do that. As written my Mystical, you need a cross-compiler or compile the project on Windows/Linux/whatever. – onitake Dec 23 '11 at 18:09
  • What I mean is how can I compile a Apple/Linux executable from the GCC compiler installed on my Windows machine? – bgroenks Dec 23 '11 at 20:06
  • I'm getting the impression that it isn't possible... hmm. Well back to Java! – bgroenks Dec 23 '11 at 20:08

0 Answers0