LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Compiling .c to an .exe from Linux? (https://www.linuxquestions.org/questions/programming-9/compiling-c-to-an-exe-from-linux-709127/)

RMLinux 03-04-2009 09:09 AM

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.

Hko 03-04-2009 09:18 AM

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


RMLinux 03-04-2009 10:03 AM

thank you Hko.


All times are GMT -5. The time now is 01:57 PM.