Hello Guest

compiling C code on multiplatforms

  • 1 Replies
compiling C code on multiplatforms
« on: January 01, 2008, 18:47:37 »
Does anyone know if it's possible to build C code for all platforms (Windows, Linux, MacOSX) from just one platform such as windows.

I know GCC can compile for every platform if you're on that platform but what I'm not sure of is that if I'm in windows can I use GCC to output MacOSX binaries.


Re: compiling C code on multiplatforms
« Reply #1 on: January 10, 2008, 00:09:19 »
So it seems possible to create a GCC cross compiler on linux but it's noticeably more difficult to create a MinGW GCC cross compiler to use on windows.  Has anyone tried it or know a good doc on how to do it?

One doc I found showed how to use linux to build a MinGW cross compiler but I didnt feel like installing linux to give it a try so I tried using cygwin but it was a no go :(.