LWJGL Forum

Programming => General Java Game Development => Topic started by: ksabo_lwjgl on January 01, 2008, 18:47:37

Title: compiling C code on multiplatforms
Post by: ksabo_lwjgl 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.

Thanks,
Karl
Title: Re: compiling C code on multiplatforms
Post by: ksabo_lwjgl 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 :(.