compiling C code on multiplatforms

Started by ksabo_lwjgl, January 01, 2008, 18:47:37

Previous topic - Next topic

ksabo_lwjgl

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.

Thanks,
Karl

ksabo_lwjgl

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 :(.