Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
11-06-2004, 02:36 PM
|
#1
|
|
Member
Registered: Nov 2004
Location: Maryville, Tennessee
Distribution: Ubuntu "Dapper Drake"
Posts: 38
Rep:
|
compiling .exe in linux
is it possible to compile windows executables (.exe) in linux? If so, where is a program ?
|
|
|
|
11-06-2004, 02:45 PM
|
#2
|
|
Member
Registered: Jul 2004
Distribution: Ubuntu 10.04
Posts: 32
Rep:
|
There is an amazing program called WINE
It should run most win32 programs that you may have...
get it at www.winehq.org
|
|
|
|
11-06-2004, 02:52 PM
|
#3
|
|
Member
Registered: Nov 2004
Location: Maryville, Tennessee
Distribution: Ubuntu "Dapper Drake"
Posts: 38
Original Poster
Rep:
|
yeah, i have that, most compilers don't work well though. Is there a native linux compiler that compiles .exe's ?
|
|
|
|
11-06-2004, 02:54 PM
|
#4
|
|
Member
Registered: Jul 2004
Distribution: Ubuntu 10.04
Posts: 32
Rep:
|
Um, I don't think so...
|
|
|
|
11-06-2004, 03:03 PM
|
#5
|
|
LQ Newbie
Registered: Oct 2004
Posts: 12
Rep:
|
Files with the extention .exe are executable programs and therefor already compiled.
|
|
|
|
11-06-2004, 03:06 PM
|
#6
|
|
Member
Registered: Jul 2004
Distribution: Ubuntu 10.04
Posts: 32
Rep:
|
I think he means that he has the Source Code and wants to make an EXE
|
|
|
|
11-06-2004, 03:13 PM
|
#7
|
|
Member
Registered: Aug 2004
Location: USA
Distribution: FreeBSD-5.4-STABLE
Posts: 252
Rep:
|
GCC Just Compiles apps right? Woulden't it be possible to compile source written for windows on linux using GCC and just add the .exe extension?
Just some ideas......
|
|
|
|
11-06-2004, 03:20 PM
|
#8
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,702
|
you can't compile software to run on windows.. that's just nonsense.
|
|
|
|
11-06-2004, 03:31 PM
|
#9
|
|
Member
Registered: Nov 2004
Location: Maryville, Tennessee
Distribution: Ubuntu "Dapper Drake"
Posts: 38
Original Poster
Rep:
|
so now i have to reinstall that sucky windows
|
|
|
|
11-06-2004, 04:03 PM
|
#10
|
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 3,816
Rep: 
|
Acid, I hate to diagree with you, but cross-compilers do exist. One of them is MinGW. The following link came up up out of the depths of Google -- it may or may not help the OP:
http://sources.redhat.com/ml/crossgc.../msg00069.html
|
|
|
|
11-06-2004, 04:33 PM
|
#11
|
|
Member
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 545
Rep:
|
It is possible to cross compile on one platform an executable for another platform.
For instance, with gcc on linux you could compile a program for SPARC SOLARIS.
I am not sure if GCC supports compiling for windows though.
Check out previous posters link to MINGW, it looks promising.
If worst comes to worst and you cannot find a cross compiler for windows on linux, make one yourself. Be unique and make history for the linux platform, by being the first person making a compiler that can compile windows binarys on a linux machine. Just be sure to GPL it and share it with the world! (I say this, because sicne you want a Windows compiler for linux I assume your a c/c++ developer?)
Last edited by jon_k; 11-06-2004 at 04:35 PM.
|
|
|
|
11-06-2004, 04:37 PM
|
#12
|
|
Member
Registered: Nov 2004
Location: Maryville, Tennessee
Distribution: Ubuntu "Dapper Drake"
Posts: 38
Original Poster
Rep:
|
i am a C developer, but I thought u had to program in another lang to compile C.
|
|
|
|
11-06-2004, 05:08 PM
|
#14
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,702
|
/me never pretends he is actually intelligent or knowledgeable 
|
|
|
|
11-07-2004, 11:58 AM
|
#15
|
|
Guru
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565
Rep:
|
Of course you can cross-compile EXEs, I do so all the time. It's really quite trivial though I'd recommend using the WineHQ headers as opposed to the MinGW headers, as they are more complete. You can find RPMs of cross compiler builds around the net if you look.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:48 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|