Compiling a C program on Linux and running it under Windows

Compiling a C program on Linux and running it under Windows

I have a compiled C program file -- say, simple.o -- the object file created on compilation from Red Hat Linux. Now I want this object file to be executed under Windows.

What's the way out for this? Is there any software that interoperates between these two?

    Requires Free Membership to View

    When you register, my team of editors will also send you resources covering Linux administration and management; integration and interoperability between Linux, Windows and Unix; securing Linux and mixed-platform environments; and migrating to Linux.

    Cathleen A. Gagne, Senior Editorial Director

    By submitting your registration information to SearchEnterpriseLinux.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchEnterpriseLinux.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

Using your Web browser, download from www.cygwin.com and install the GCC compiler. Now you can compile your C program just like under Linux and run it on Windows inside the Cygwin toolkit.

This was first published in January 2004