LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 03-04-2009, 09:09 AM   #1
RMLinux
Member
 
Registered: Jul 2006
Posts: 224

Rep: Reputation: 31
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?

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

Rep: Reputation: 108Reputation: 108
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:
Code:
 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, 10:03 AM   #3
RMLinux
Member
 
Registered: Jul 2006
Posts: 224

Original Poster
Rep: Reputation: 31
thank you Hko.
 
  


Reply

Tags
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 05:08 AM
compiling to exe ? SkeleToR.cZ Programming 5 04-27-2006 04:27 AM
Compiling Perl into Standalone exe Xyem Programming 3 07-28-2005 02:02 AM
compiling .exe in linux bluefusionx Linux - Software 17 12-06-2004 12:19 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration