Turbo C is an old compiler,
but it should work
fine for the purposes of our class.
These are instructions for downloading and installing v2.01 of the
Borland Turbo C compiler on Windows 95/98/NT. I have tested this procedure
on Windows 95 and 98; it should also work on Windows NT and Windows
2000.
These instructions seem involved but the are fairly simple, if you
follow them exactly.
- Click here to download the
zipped Free Turbo C Compiler.
- Go to where you downloaded the file, and double click on the self-extracting
file (turboC.exe) in Windows to extract it.
This will bring up a WinZip Self-Extractor window (you do NOT need
WinZip installed on your machine).
By default, this will
extract the files to C:\tctemp directory. You may
designate a different location.
Hit return to extract the
files.
- Exit the WinZip Self-Extractor window (by hitting return twice).
- Once the files have been extracted, go to the directory c:\tctemp
(or wherever you put the unzipped files),
and double click on the file called install (it may be called
install.exe).
- This will step you through the installation.
- Hit enter to start the installation
- Select the drive where the unzipped file are. The
default is "A", so you should enter "C".
Then hit return.
- Hit return, again. This installs from the directory,
\tctemp.
- Hit return, again. This says to Install Turbo C on a Hard
Drive.
- Use the Up/Down arrow keys (hit the up arrow once)
to select Start Installation,
and then hit return, again.
- At this point, the v2.01 Turbo C compiler is installed
in C:\TC. That is where the tcc.exe executable is.
- That's everything, but you must add C:\TC to your executable
search path. The easiest way to do this:
- Bring up an MS-DOS window.
- Position the cursor on the title bar of the MS-DOS window
and right-click.
- This pops up a menu. Click on Properties.
- At the top of the window, click on the Program
folder.
- In the middle field, labeled Batch file:, enter
the following:
C:\tctemp\init.bat
(This assumes that you unzipped the files into C:\tctemp.)
- Click OK at the bottom of the window.
- Close the MS-DOS window
- Now you're done! Try it out by creating a small C program and
compiling it.
- Bring up the MS-DOS window in the same way as you did
above. (NOTE: You must close the first MS-DOS window.)
- Type tcc and hit return. You should see a usage
message. describing all the many compiler options.
- Now create, compile, and run the Hello World! program.