Ask the Expert

Compilers that can build binary in both Linux and Windows

I am using the WatCom Compiler to build the binary along with the Visual Studio 2005 IDE in Windows. Can you suggest another compiler that can build the binary in both Linux and Windows?

Requires Free Membership to View

You don't mention whether or not you use the C/C++ or Fortran compiler, so I'll assume you are using C. First you should be aware that there is work currently being done on Watcom for Linux. This link will give you instructions on how to install Open Watcom on Linux.

Have you looked at gcc, commonly associated with Linux or Unix? The gcw project (GCC for windows) is an attempt to port gcc to Windows. You can also look at installing Cygwin, which would give you a Linux-like environment for Windows. It acts as a Linux API emulation layer.

This was first published in September 2007

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: