Connecting Tech Pros Worldwide Forums | Help | Site Map

cross compilation

cervello_in_vacanza
Guest
 
Posts: n/a
#1: Jul 3 '08
Hi everyone,

I would like to know a way to produce a .EXE file compiling with gcc
from within a Linux machine.

Is it just a flag question or do I need any specific library?

Thank you in advance for your kind reply.

santosh
Guest
 
Posts: n/a
#2: Jul 3 '08

re: cross compilation


cervello_in_vacanza wrote:
Quote:
Hi everyone,
>
I would like to know a way to produce a .EXE file compiling with gcc
from within a Linux machine.
>
Is it just a flag question or do I need any specific library?
>
Thank you in advance for your kind reply.
No, you need to compile gcc as a cross compiler. It's not a easy task
and this is not the group to ask help with it. Try gnu.gcc.help or
perhaps a Linux newsgroup. IIRC there are a fair number of tutorials
and howtos on the Net on this subject. Use Google to find them.

Antoninus Twink
Guest
 
Posts: n/a
#3: Jul 3 '08

re: cross compilation


On 3 Jul 2008 at 19:23, santosh wrote:
Quote:
cervello_in_vacanza wrote:
Quote:
>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."

cervello_in_vacanza
Guest
 
Posts: n/a
#4: Jul 3 '08

re: cross compilation


Antoninus Twink wrote:

Quote:
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."
I run a Debian. That's what I was wishing to hear.
I will apt-get them as soon as I can.
thank you.
Closed Thread