Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-04-2009, 10:09 AM   #1
Registered: Jul 2006
Posts: 260

Rep: Reputation: 37
Compiling .c to an .exe from Linux?

Hi keen buddies,

I have question is it possible to convert my C compiled program in Linux to run as exe in Windows.

./program.o it works in Linux. How to make it run in Windows?

any help is greatly appreciated.
Old 03-04-2009, 10:18 AM   #2
Senior Member
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 110Reputation: 110
Never done it, so I don't know how to do it, but MinGW seems ty do this quite well. At least Ubuntu/Debian have packages for them in the standard repositories:
 apt-cache search mingw
mingw32 - Minimalist GNU win32 (cross) compiler
mingw32-binutils - Minimalist GNU win32 (cross) binutils
mingw32-runtime - Minimalist GNU win32 (cross) runtime
Old 03-04-2009, 11:03 AM   #3
Registered: Jul 2006
Posts: 260

Original Poster
Rep: Reputation: 37
thank you Hko.


compiler, win32

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
samba compatibility with microsoft srvtools.exe (usrmgr.exe and srvmgr.exe) checkmate3001 Linux - Software 1 09-06-2008 06:08 AM
compiling to exe ? SkeleToR.cZ Programming 5 04-27-2006 05:27 AM
Compiling Perl into Standalone exe Xyem Programming 3 07-28-2005 03:02 AM
compiling .exe in linux bluefusionx Linux - Software 17 12-06-2004 01:19 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:12 PM.

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