What tools can I use to simplify porting apps from Windows to Linux?

What tools can I use to simplify porting apps from Windows to Linux?

What's the hardest thing about porting applications from Windows to Linux? What open source tools (like compilers) do you use when porting applications to Linux? Are any of them universal? Can they be used any time you're porting an application?

    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.

In general, the most difficult thing when porting applications from Windows to Linux is porting the GUI code. There are free as well as commercial cross-platform GUI libraries which make this manageable.

The most common tools used when porting applications to Linux, or more accurately, GNU/Linux, are GCC (GNU Compiler Collection) C, C++ compilers, binutils (the assembler, linker and other object file utilities) and the gdb debugger.

These tools are available on most popular operating systems and can be used for porting almost any C or C++ application. GCC can also be used for porting applications developed using other languages like Java, Objective-C and Ada.

There is not much difference between the various Linux distributions in terms of ease of porting as far as tools are concerned. The larger distributions tend to pack together more features and may make it easier to get a particular library required to complete the port.

How long a particular release is supported by the vendor and quality and price of support for the GNU tools is a lot more important and should be considered when selecting a distribution of Linux.

This was first published in January 2005