On 3 Jul 2008 at 19:23, santosh wrote:
cervello_in_vacanza wrote:
>I would like to know a way to produce a .EXE file compiling with gcc
from within a Linux machine.
No, you need to compile gcc as a cross compiler. It's not a easy task.
You also need to compile the binutils (as, ld etc.) for cross compiling.
It's quite possible that the OP's Linux distribution will package tools
for cross-compilation, which should make things much easier. For
example, Debian has mingw32, mingw32-binutils and mingw32-runtime
packages, so that "those who still really need to can now build windows
executables from the comfort of Debian."