User forums > Using Code::Blocks
Compiling Win32 apps in C:B + GCC under Linux
sasq:
Hello.
Is it possible to compile Win32 GUI apps [using Win32 API] with GCC under Linux?
If yes, how to do it?
I mean, how to install Win32 SDK headers/libs and where to make it possible for GCC to use it with C::B?
Can I use that Win32SDK package for MinGW ? Or maybe there is a special package for GCC/Linux?
I've tried to add paths to my MinGW include dir on Windows partition under C::B compiler options, but I've got some strange errors [maaany of them! :/ ].
TDragon:
The MinGW website would be the obvious place to look. I found this without even hitting Google...
thomas:
This is not easy, but it is possible using at least two different approaches.
First, gcc can be configured as a cross-compiler and as such, it can generate Windows applications from Linux. Don't ask me how to set up cross-compiling though, I wish I knew (I'd use it the other way around if I did).
Second, there is a gcc drop-in replacement which runs the compiler on a different machine via ssh. I forgot its name, but it is hosted on Sourceforge, should be easy enough to find under "compilers".
That way, you need another PC (or a virtual machine running on the same PC) with Windows installed, and you can compile Windows applications natively, doing the actual work from Linux, though. It is a bit less elegant than cross-compiling, but it surely needs less setup.
bluekid:
look winelib
Michael:
Hello,
Look at here:
http://forums.codeblocks.org/index.php?topic=2688.0
Best wishes,
Michael
Navigation
[0] Message Index
[#] Next page
Go to full version