Cross compile GTK+ application from Linux to Windows?

How can I cross compile my GTK+ app (written in C) from Linux to Windows? Could I just replace the "gcc" command with "mingw32"?


Fedora has a great mingw32 cross-compiler toolchain which comes with lots of precompiled libraries, including GTK+ and gtkmm. For most applications you just need to install the cross-compiler and the cross-compiled GTK+ libraries: yum install mingw32-gcc mingw32-gtk2

Once everything needed is installed, compiling your application is just the matter of running "mingw32-configure" followed with "make".

More information at the project page https://fedoraproject.org/wiki/MinGW