473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

cross compilation

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.
Jul 3 '08 #1
3 1792
cervello_in_vacanza wrote:
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.

Jul 3 '08 #2
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."

Jul 3 '08 #3
Antoninus Twink wrote:

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.
Jul 3 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: darkhack | last post by:
Hello. I am looking for a GUI API that is cross platform and works with Windows, Mac, and Linux. I was hoping for something free and open source. You see, I have yet to find anything that fits...
1
by: Han-Wen Nienhuys | last post by:
Hello, I have a small patch for Python SVN that makes it possible to cross-compile python on Unix to various other Unix targets. I have successfully built a binary for FreeBSD on Linux. The...
6
by: greek_bill | last post by:
Hi, I'm interested in developing an application that needs to run on more than one operating system. Naturally, a lot of the code will be shared between the various OSs, with OS specific...
1
by: ac.c.2k7 | last post by:
Hi All, While doing the cross compilation of pkg_config for directFB for MIPS target from i86 platform, i am getting the following error. "checking for extra flags to get ANSI library...
1
by: Otacon22 | last post by:
Hi all, I want to create a robot with a router board based on processor atheros 2.6, called "fonera". I have installed a version of linux, Openwrt and python and i want to use it for some...
3
by: Squat'n Dive | last post by:
Does anyone have an idea why -fno-strict-aliasing is turned off when cross compiling? in configure generated for 2.4.4: case $GCC in yes) # Python violates C99 rules, by casting between...
0
by: psrathore | last post by:
I am passing a bunch of parameters to my stored proc. The following query uses a few of those parameters alongwith a column value from the outer table using cross apply. I get a compilation error...
1
by: Roumen Petrov | last post by:
Hi list members, It seems to me that this is discussed many times in the past but without progress. As I understand in general there is no objections and preferred cross-compilation has to be...
1
by: akaley | last post by:
Hi all, I tried to cross compile the java files from 1.5 to 1.3 in JDK 1.5 environment by using the below command javac -target 1.3 *.java. But it showing an error message Like cross...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.