Difference between revisions of "Installing Microsoft C compiler (Visual Studio 2010 and older, or Windows SDK 7.1 and older)"
(Added Category) |
(No more specific 32/64 C compiler page.) |
||
Line 1: | Line 1: | ||
[[Category:Windows]] | [[Category:Windows]] | ||
− | The Microsoft C compiler is now freely available by downloading the Windows | + | 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. |
− | + | ||
− | + | == Windows SDK == | |
+ | The first thing to do is to download the Windows SDK from Microsoft's web site: | ||
+ | |||
+ | [http://download.microsoft.com/download/a/7/7/a7767f09-0136-4a96-a1f8-276bf0ee31fa/Setup.exe Windows SDK setup.exe] | ||
+ | |||
+ | == Configuring C compiler to compile from the command line== | ||
+ | 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: | ||
+ | |||
+ | {{block| cmd.exe /V:ON /K "C:\apps\Windows\v6.0\bin\setenv.cmd" /Release }} | ||
+ | |||
+ | After executing this command you can invokes the C compiler. Note that the prompt will change color, you may want to use `color 07' to restore to the default white on black. | ||
+ | |||
+ | Replace ''c:\apps\Windows\v6.0'' by the location where you installed the Windows SDK. |
Revision as of 12:21, 6 February 2007
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.
Windows SDK
The first thing to do is to download the Windows SDK from Microsoft's web site:
Configuring C compiler to compile from the command line
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:
cmd.exe /V:ON /K "C:\apps\Windows\v6.0\bin\setenv.cmd" /Release
After executing this command you can invokes the C compiler. Note that the prompt will change color, you may want to use `color 07' to restore to the default white on black.
Replace c:\apps\Windows\v6.0 by the location where you installed the Windows SDK.