Installing Microsoft C compiler 6.1 and older
In order to install EiffelStudio in Windows you will need to attain a C/C++ compiler. For 32-bit (x86) users, the installer comes complete with a free C/C++ compiler, which you can opt to install if no compatible C/C++ was detected on your system. For x86 users who do not want to use the packaged free C/C++ compiler, or if you are using an 64-bit (x64) operating system and are trying to install the 64-bit version of EiffelStudio, you will need to either attain a free Microsoft C/C++ compiler or use an installed version of Visual Studio.
Using a Microsoft Visual C/C++ Compiler
Attaining the Free Microsoft Windows SDK
The Microsoft C compiler is now freely available by downloading the Windows SDK. Below you will find a description on how to set up the Microsoft SDK so that you can compile C code on Windows.
The first thing to do is to download the Windows SDK from Microsoft's web site: Windows SDK setup.exe.
When installing it, make sure to install the Developer Tools, in particular the Windows Vista Headers and Libraries, the Visual C++ Compilers and the Windows Development Tools. Failure to do so would result in a non-working C compiler.
Using Visual Studio
In order to use Visual Studio with EiffelStudio you need be sure you have installed the Visual C/C++ compiler and developer tools. It is also important you choose to install the correct compiler tools. As of Visual Studio 2008 the installation on a x64 operating system does not, by default, install the x64 compiler tools. As a result the EiffelStudio installer will fail to find the installed C/C++ when using a x64 version of EiffelStudio. Be sure to customize the installation and under the Visual C++ node, check X64 Compiler and Tools.
Configuring C Compiler to Compile From the Command Line
After you have successfully installed the Windows SDK, the only thing you need to do is to configure some environment variables. The best way to configure them is to use the `setenv.cmd' batch file included in the Windows SDK:
After executing this command you can invoke the C compiler. Note that the prompt will change color, you may want to use `color' (taking no arguments) to restore to the default, or `color 07' to set it white on black.
Using espawn Instead
Alternatively you can compile the utilize the espawn tool. The tool mocks the environment used by the Eiffel compiler so global access to Windows SDK tools, such as the C/C++ compiler, is granted. As such there is no need to manually configure your system's environment variables or use the setenv.cmd.