euglug.org

[Eug-lug] Compiling Windows Binaries within Linux

작성자

카테고리:



Martin KellyWed Oct 12 21:34:27 PDT 2005

Mingw looked promising, but I installed the Debian (Sarge) packages for 
it, and then built a program with gcc -o example.exe example.c -mwindows 
and it couldn't run as an exe, only as a Linux binary. Any idea what 
might be wrong?

Mike Cherba wrote:

>There are a couple of options:  You could compile using the cygwin tools
>under Windows.  but I assume you mean that you have Only a linux box and
>you want to build a windows app on it to send to a friend.  You might
>look into mingw ( http://www.mingw.org/ ) or there are also some howtos
>for building the cygwin tools as a cross compiler to run under Linux and
>produce windows executables.  Another route might be to obtain a free
>windows c compiler and run it under Linux using either dosemu or wine or
>some other Windows compatability layer.
>			-Mike
>
>
>On Wed, 2005-10-12 at 20:31, Martin Kelly wrote:
>  
>
>>Does anyone know a way of compiling a Windows .exe using GCC? I know 
>>it's possible but I'm not sure how exactly, and it would be useful for 
>>distributing programs to friends who are not using Linux.
>>
>>Thanks :)
>>-Martin
>>_______________________________________________
>>EUGLUG mailing list
>>euglug at euglug.org
>>http://www.euglug.org/mailman/listinfo/euglug
>>    
>>