LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 11-06-2004, 02:36 PM   #1
bluefusionx
Member
 
Registered: Nov 2004
Location: Maryville, Tennessee
Distribution: Ubuntu "Dapper Drake"
Posts: 38

Rep: Reputation: 15
compiling .exe in linux


is it possible to compile windows executables (.exe) in linux? If so, where is a program ?
 
Old 11-06-2004, 02:45 PM   #2
battousai9439
Member
 
Registered: Jul 2004
Distribution: Ubuntu 10.04
Posts: 32

Rep: Reputation: 15
There is an amazing program called WINE

It should run most win32 programs that you may have...

get it at www.winehq.org
 
Old 11-06-2004, 02:52 PM   #3
bluefusionx
Member
 
Registered: Nov 2004
Location: Maryville, Tennessee
Distribution: Ubuntu "Dapper Drake"
Posts: 38

Original Poster
Rep: Reputation: 15
yeah, i have that, most compilers don't work well though. Is there a native linux compiler that compiles .exe's ?
 
Old 11-06-2004, 02:54 PM   #4
battousai9439
Member
 
Registered: Jul 2004
Distribution: Ubuntu 10.04
Posts: 32

Rep: Reputation: 15
Um, I don't think so...
 
Old 11-06-2004, 03:03 PM   #5
zoings
LQ Newbie
 
Registered: Oct 2004
Posts: 12

Rep: Reputation: 0
Files with the extention .exe are executable programs and therefor already compiled.
 
Old 11-06-2004, 03:06 PM   #6
battousai9439
Member
 
Registered: Jul 2004
Distribution: Ubuntu 10.04
Posts: 32

Rep: Reputation: 15
I think he means that he has the Source Code and wants to make an EXE
 
Old 11-06-2004, 03:13 PM   #7
predator.hawk
Member
 
Registered: Aug 2004
Location: USA
Distribution: FreeBSD-5.4-STABLE
Posts: 252

Rep: Reputation: 30
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......
 
Old 11-06-2004, 03:20 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you can't compile software to run on windows.. that's just nonsense.
 
Old 11-06-2004, 03:31 PM   #9
bluefusionx
Member
 
Registered: Nov 2004
Location: Maryville, Tennessee
Distribution: Ubuntu "Dapper Drake"
Posts: 38

Original Poster
Rep: Reputation: 15
so now i have to reinstall that sucky windows
 
Old 11-06-2004, 04:03 PM   #10
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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
 
Old 11-06-2004, 04:33 PM   #11
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Rep: Reputation: 30
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.
 
Old 11-06-2004, 04:37 PM   #12
bluefusionx
Member
 
Registered: Nov 2004
Location: Maryville, Tennessee
Distribution: Ubuntu "Dapper Drake"
Posts: 38

Original Poster
Rep: Reputation: 15
i am a C developer, but I thought u had to program in another lang to compile C.
 
Old 11-06-2004, 05:04 PM   #13
mAineAc
Member
 
Registered: Nov 2000
Location: Hermon, ME
Distribution: slackware
Posts: 201

Rep: Reputation: 30
check out this page has some useful information:
http://www.freelabs.com/~whitis/linux/cross.html
 
Old 11-06-2004, 05:08 PM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
/me never pretends he is actually intelligent or knowledgeable
 
Old 11-07-2004, 11:58 AM   #15
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling Perl into Standalone exe Xyem Programming 3 07-28-2005 02:02 AM
.exe on linux domon#1 Mandriva 2 07-04-2005 07:48 PM
why .exe not work in linux mili Linux - Newbie 5 06-16-2005 11:58 PM
.exe in linux? zfmt Linux - Newbie 4 12-02-2004 10:26 PM
linux .exe? loop Linux - General 5 11-02-2001 01:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration