Building Win32 apps on Linux? (To Cygwin users on the list...)

Toralf Lund
Fri Sep 2 18:33:00 GMT 2005

Christopher Faylor wrote:

>On Fri, Sep 02, 2005 at 08:03:16PM +0200, Toralf Lund wrote:
>>I'm still not sure I see the full picture, though. Does this mean that 
>>actual cross build setup is readily available,
It's tempting to ask why not...

But I guess there must be someone who has released binaries for this, if 
I decide that's what I want.

> I just built a cross-compiler for my system.  Normal users just run
>gcc on windows.
Aren't the normal users those who have to support multiple platforms? It 
seems to me that it must be better to have the same build host for most 
or all of them...

Personally, I think I may possibly be talked into developing software 
for Windows, but only if I don't have to do actual work under the 
Windows environment, which I just don't like (that's why I'm here, right?)

>>and/or that it will be simple to cross-compile additional windows
>>binaries that rely on cygwin1.dll, on a Linux host?
>You build a cygwin cross compiler more or less the same way as you build
>any cross compiler.  The standard windows libraries and headers are part
>of the winsup/mingw and winsup/w32api directories which are supposed to
>be used and automatically when you build a cross-compiler.
Where do these come from? The gcc distro itself? glibc?

I did have a stab at building a "cross gcc" for cygwin target, but I was 
using my newlib-based setup for embedded platforms, which I didn't 
really expect to work. And I was right. The build looked promising for a 
while, but eventually failed due to missing stdio.h or something like 
that. I didn't investigate the issue further.

- Toralf

Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list